Question:
How do you declare a variable in R?
Author: Zhasmina Yanislavova TachevaAnswer:
My_value <- 5 my_str <- "Hello world" my_vector <- c(5,65,23,1) names <- c("Ann", "Bob", "Clyde", "Lu") my_df <- data.frame(names, my_vector) my_df$names <- as.character(my_df$names)
0 / 5 Â (0 ratings)
1 answer(s) in total