Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to rename a variable?



How to rename a variable?..

Answer / Mayank Shekhar

To rename a variable in R, you can use the assignment operator (<-). Simply assign the value of the existing variable to a new name.nn```rnold_name <- 5 # original variablennew_name <- old_name # assigns the value of old_name to new_name

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

What is R studio and how to use it?

1 Answers  


What is a dataframe in r?

1 Answers  


What do you mean by data visualization in R?

1 Answers  


What is the use of sample and subset functions in R programming language?

1 Answers  


What is the difference between the data frame and a matrix in R?

1 Answers  


How to call c function from r?

1 Answers  


Give the command to check if the element 15 is present in vector x?

1 Answers  


What are the advantages of R?

1 Answers  


how to import data into R?

1 Answers  


Write a custom function which will replace all the missing values in a vector with the mean of values.

1 Answers  


What are the steps to build and evaluate a linear regression model in r?

1 Answers  


How can you simulate noise model using r?

1 Answers  


Categories