The R Console
In this page:
The R Console
The R console is an interactive prompt where you type expressions and see results immediately, useful for quick exploration before writing a full script. Every complete expression you enter is evaluated and its value printed automatically at the console (though not inside a script). Scripts, by contrast, need explicit print() or cat() calls to show output.
Note: At the interactive console, just typing a variable's name prints its value -- but inside a script you must call print() explicitly.
Example: The R Console
x <- 42
print(x)
y <- x * 2
print(y)
Login to try C/C++/Java/PHP code in the editor
Chapter Quiz — Complete all 6 topics to unlock
0/6 topics done
Complete these topics first: