SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

IST 387 Fall 2020

» Start this Course
(Practice similar questions for free)
Question:

How do you declare a variable in R?

Author: Zhasmina Yanislavova Tacheva



Answer:

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