0 votes
1 view
in R Programming by (5.3k points)

I want to comment out several lines of code in R. Is there any way of doing it without having to put a # before each line - sort of like /* blocked out code */ in SAS?

1 Answer

0 votes
by (42.1k points)
edited by

See many compilers take some kind of shortcut to comment out blocks of code. The default compilers use something like command or control and a single quote to comment out selected lines of code. In RStudio it is Command or Control+/. Check-in your editor.

In the case of the Mac RGUI, the command is command-option ' but for the Rstudio, you just have to press Control + Shift + C again.

If you are a beginner and want to know more about R then do check out the R programming tutorial.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...