Deloitte Interview Questions | Write a function to convert Fahrenheit to Kelvin. You can use the internet to find the conversion
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways
Answers ( 2 )
fah_to_kelvin <- function(temp) {
kelvin <- ((temp – 32) * (5 / 9)) + 273.15
return(kelvin)
}
conv = function(t){
as.numeric(t)
K = ((t – 32) * 5/9 )+ 273.15
return(paste0(“the temperature in kelvin is: “, K,” kelvin”))
}