How to create new variable in R Programming language?

Category: R LanguageHow to create new variable in R Programming language?
Editor">Editor Staff asked 2 years ago

How to create new variable in R Programming language?

1 Answers
Editor">Editor Staff answered 2 years ago

For creating new variable assignment operator ‘<-’ is used
For e.g. mydata$sum <- mydata$x1 + mydata$x2