Answers for "r table dataframe"

R
1

view table/dataframe in r

head(<table_name>)
#Return summaries of each column in your data arranged horizontally:
glimpse(<table_name>)
str(<table_name>)
#Return column names:
colnames(<table_name>)
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