Introduction to R
First step into R, the language of statistics and data science: printing to the screen with cat and comments.
Simple enough for a 5-year-old to understand
print with cat
cat writes to the screen. Add "\n" to move to a new line; use sep="" for clean output.
cat("Hello!\n", sep="")Comment line
# This is a comment — it does not work.cat("Code is here\n", sep="")🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)
🎯 Expected output: Hello World