adspace


How To Create New Variable In R Programming?

Answer Posted / Chetan Warkari

To create a new variable in R programming, you can assign a value to it using the assignment operator '<-'. For example: x <- 5 creates a new variable called x and assigns the value 5 to it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you convert a factor variable to numeric in r language?

213


Given a vector of numbers, how would you turn the values into scientific notation?

172


How can you verify if a given object “X” is a matrix data object?

188