Language Resources:
Official Documentation:
Link: R Documentation
Annotation: The official R documentation site, which provides detailed information about R functions and packages. This will be an essential reference as I learn R this semester.
R for Data Science:
Link: R for Data Science Book
Annotation: This free online book and website by Hadley Wickham and Garrett Grolemund teaches you how to use R for data science. It covers data manipulation, visualization, and modeling with practical examples. Will be very useful in the future especially for relevant applications.
Codecademy - Learn R:
Link: Codecademy R Course
Annotation: Codecademy offers a free course that introduces you to the basics of R programming, and allows access to coding exercises. Will be useful for real coding practice in R.
Coursera - R Programming:
Annotation: This introductory course from Johns Hopkins University covers the basics of R programming, data types, and functions. It's a great starting point for beginners and could be useful if supplemented with other resources here.
Swirl - Learn R in R:
Link: Swirl
Annotation: Swirl is an R package that allows you to learn R programming directly in the R console. It provides interactive tutorials. This will be a great resource for coding practice.
This is a simple program in R, that basically calculates the factorial of a number!
The way the program functions is that it uses if else logic, with a for loop in order to iterate through the factors of the given number and multiply them the next smallest factor. This gives us a factorial of a number!
Program Output:
This output shows an example run of my R program, which correctly calculates the factorial of the digit 4.