R Comment out block of code duplicate

0 votes
In R, I'd like to comment out a few lines of code. Is there a method to do it without having to write a # in front of each line, similar to SAS's /* blocked out code */?
Jun 14 in Data Analytics by Avinash
• 1,260 points
10 views

1 answer to this question.

0 votes
The majority of editors use a short cut to uncomment code blocks. To comment out specific lines of code in the default editors, use command or control and a single quote. It's Command or Control+/ in RStudio. Verify with your editor.

They continue to remark line by line, but they also uncomment a few chosen lines. It's command-option for the Mac RGUI (I'm assuming control option for Windows). It's just Command or Control + Shift + C once more for Rstudio.

These shortcuts will probably alter as editors are upgraded and new programmes overtake older ones as the most widely used R editors. Whatever software you use, you'll need to search it up.
answered 4 days ago by Sohail
• 2,280 points

Related Questions In Data Analytics

0 votes
1 answer

How can I measuring running time of R Code ?

5 ways to measure running time of ...READ MORE

answered Apr 17, 2018 in Data Analytics by anonymous
9,088 views
0 votes
1 answer

How to find out cluster center mean of DBSCAN in R?

Just index back into the original data ...READ MORE

answered Jun 27, 2018 in Data Analytics by Sahiti
• 6,360 points
758 views
+1 vote
1 answer

"subscript out of bounds" error in while executing simple R program

This is caused by trying to access ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 52,350 points
1,247 views
+2 votes
1 answer

“subscript out of bounds” Error in r programming

This error is likely to occur when ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 52,350 points
8,892 views
0 votes
1 answer

Big Data transformations with R

Dear Koushik, Hope you are doing great. You can ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
422 views
0 votes
2 answers

Transforming a key/value string into distinct rows in R

We would start off by loading the ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,660 points
467 views
0 votes
1 answer

Finding frequency of observations in R

You can use the "dplyr" package to ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,660 points
4,280 views
0 votes
1 answer

Left Join and Right Join using "dplyr"

The below is the code to perform ...READ MORE

answered Mar 27, 2018 in Data Analytics by Bharani
• 4,660 points
491 views
0 votes
1 answer

Why variance in R is different? [duplicate]

There are usually two methods for calculating ...READ MORE

answered Jun 14 in Data Analytics by Sohail
• 2,280 points
12 views
0 votes
1 answer

How can I make a list of lists in R?

Lists of lists are simple to create. list1 ...READ MORE

answered 4 days ago in Data Analytics by Sohail
• 2,280 points
7 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP