What is the standard naming convention for the variables in R

0 votes
Apr 25, 2018 in Data Analytics by zombie
• 3,790 points
607 views

1 answer to this question.

0 votes
Use of period separator

e.g. product.prices <- c(12.01, 10.12)

Use of underscores

e.g. product_prices <- c(12.01, 10.12)

Use of mixed capitalization (camelCase)

e.g. productPrices <- c(12.01, 10.12)

However, the third way is mostly and widely used and avoids any errors or confusion.
answered Apr 25, 2018 by shams
• 3,670 points

Related Questions In Data Analytics

0 votes
1 answer

How to find out the sum/mean for multiple variables per group in R?

You can use the reshape2 package for ...READ MORE

answered Apr 12, 2018 in Data Analytics by DataKing99
• 8,250 points
3,685 views
0 votes
1 answer
0 votes
1 answer

What is the difference between library () and require () functions in R ?

 library() require() Library () function gives an error message ...READ MORE

answered Sep 5, 2018 in Data Analytics by zombie
• 3,790 points
2,606 views
0 votes
2 answers

What is the difference between %% and % in R programming?

HI, %% returns remainder in case of numeric ...READ MORE

answered Aug 26, 2019 in Data Analytics by anonymous
• 33,030 points
2,298 views
0 votes
1 answer

What are the top packages in R for data visualization?

These are the top R packages used ...READ MORE

answered Aug 26, 2019 in Data Analytics by Cherukuri
• 33,030 points
858 views
0 votes
1 answer

What is the difference between list and vector in R?

The difference are - A list holds different ...READ MORE

answered Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
47,870 views
0 votes
1 answer

What is the difference between merge and bind in R?

Merge function merges an arbitrarily large series ...READ MORE

answered Oct 29, 2019 in Data Analytics by Cherukuri
• 33,030 points
7,384 views
0 votes
2 answers

R function for finding the index of an element in a vector?

The function match works on vectors : x <- sample(1:10) x # ...READ MORE

answered Dec 12, 2020 in Data Analytics by Rajiv
• 8,910 points
56,492 views
0 votes
1 answer

How can I define Global Variables in R?

The variables declared inside a function are ...READ MORE

answered Apr 25, 2018 in Data Analytics by shams
• 3,670 points
5,915 views
0 votes
1 answer

How can I control the size of points in an R scatterplot?

plot(variable, type='o' , pch=5, cex=.3) The pch argument ...READ MORE

answered May 3, 2018 in Data Analytics by shams
• 3,670 points
1,230 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