Do you use attach or call variables by name or slicing

0 votes
Many beginner R books and guides begin with the practise of adding a data.frame so that variables can be called by name. I've always preferred using $ notation or square bracket slicing [,2] to name variables. That manner, I may utilise numerous data.frames without causing confusion, and/or use iteration to call columns of interest sequentially. I noticed that Google just published R coding guidelines, which includes the following sentence.

1) attach: don't use it

What are people's thoughts on this practise?
Jun 13, 2022 in Others by Avinash
• 1,260 points
183 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Others

0 votes
0 answers

Can you delete android play store app and use the package name?

I have an app that's currently on ...READ MORE

Jun 7, 2022 in Others by polo
• 1,480 points
421 views
0 votes
1 answer

Why do we use Body-parser in Node.js?

For understanding this first you need to ...READ MORE

answered May 20, 2019 in Others by sunshine
• 1,300 points
7,683 views
0 votes
1 answer

How do I get a cheap domain name? - web hosting

Many web hosting companies like amazon's lighsail ...READ MORE

answered Oct 28, 2019 in Others by Yesha
646 views
0 votes
1 answer

Is a good practice to use domain name generator?

To start off with let me explain ...READ MORE

answered Oct 28, 2019 in Others by Pavan
620 views
0 votes
1 answer

Where do I get SAA-C02 dumps or practice questions in 2021

Hi@robertpattinson, You can find exam dumps by a ...READ MORE

answered Dec 29, 2020 in Others by MD
• 95,440 points
430 views
0 votes
1 answer

error: ORA-65096: invalid common user or role name in oracle

To start with, the oerr utility is ...READ MORE

answered Feb 16, 2022 in Others by Aditya
• 7,680 points
17,095 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
769 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
844 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
5,552 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
861 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP