R For SAS Users
Melinda Higgins, PhD
Research Professor/Senior Biostatistician Emory University

R is FREE. Free as in no cost and free as in open source licensingR's popularity is growing rapidly $^1$R have now surpassed those for SASR appears to now be more commonly reported in scholarly articles than SASR installation is small (usually < 100MB)R is FREE?






ls() lists all data and related objects loaded in R session's global environment
load() loads datasets in .RData binary formatUsually there are no objects in the global environment at the beginning of a new R session.
ls()
character(0)
# Load the abalone dataset
load("abalone.RData")
# List the objects in memory
ls()
"abalone"


help() provides access to documentation for any function or package installedhelp(ls)


sessioninfo() provides details on computer system and packages loadedlibrary() is used to load packages during your R sessionR packages are available and increasing everyday $^1$sessionInfo()
R version 4.5.2 (2025-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.3 LTS
Matrix products: default
locale:
[1] LC_CTYPE=en_US.UTF-8
[2] LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
# Load the dplyr package and run sessionInfo again
library(dplyr)
sessionInfo()
R version 4.5.2 (2025-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.3 LTS
... some output removed ...
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_1.1.4
R For SAS Users