What is the standard naming convention for the variables in R?

0 votes
Apr 25, 2018 in Data Analytics by zombie
• 3,750 points
94 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,630 points

Related Questions In Data Analytics

0 votes
1 answer

What are the options for deploying models in production with R?

Well, I could say that the answer ...READ MORE

answered Apr 12, 2018 in Data Analytics by DataKing99
• 8,210 points
594 views
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,210 points
1,390 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,750 points
470 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
• 32,490 points
303 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 25, 2019 in Data Analytics by Cherukuri
• 32,490 points
79 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 28, 2019 in Data Analytics by Cherukuri
• 32,490 points
9,175 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 28, 2019 in Data Analytics by Cherukuri
• 32,490 points
1,068 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,630 points
3,646 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,630 points
182 views