Mode:
Duration:
1
2
3
4
cToF <- function(c) { c * 9/5 + 32 }
fToC <- function(f) { (f - 32) * 5/9 }
cat('25°C =', cToF(25), '°F\n')
cat('77°F =', fToC(77), '°C\n')Coding works best on desktop or with an external keyboard.
cToF <- function(c) { c * 9/5 + 32 }
fToC <- function(f) { (f - 32) * 5/9 }
cat('25°C =', cToF(25), '°F\n')
cat('77°F =', fToC(77), '°C\n')Coding works best on desktop or with an external keyboard.
Converts Celsius to Fahrenheit and Fahrenheit to Celsius.
cToF <- function(c) { c * 9/5 + 32 }
fToC <- function(f) { (f - 32) * 5/9 }
cat('25°C =', cToF(25), '°F\n')
cat('77°F =', fToC(77), '°C\n')R is a high-level, interpreted programming language and environment specifically designed for statistical computing, data analysis, and graphical representation. It provides a rich ecosystem of packages and functions for statistical modeling, data visualization, and reproducible research.
Origin & Creator
Created by Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand, in 1993 as an open-source alternative to S and S-PLUS.
Industrial Note
R is heavily used in statistical research, data science, machine learning experiments, and academic publications where reproducible data analysis is critical.