Answers for "create dataframe or table in r"

R
1

create dataframe or table in r

#R data frame is made up of two or more vectors
names <- c("Mark", "Luke", "John", "Matt")
age <- c(25, 30, 35, 40)

people <- data.frame(names, age)
Posted by: Guest on September-22-2021
2

create a table from dataframe in r

#R dataframe syntax
data.frame(x = c(1, 2, 3) , y = c(1.5, 5.5, 7.5))
Posted by: Guest on September-21-2021

Browse Popular Code Answers by Language