Answers for "R dataframe shape"

1

R dataframe shape

df = data.frame(col1=c(1,2,3), col2=c(4,5,6))
dim(df)

# Output: [1] 3 2
Posted by: Guest on January-22-2021

Browse Popular Code Answers by Language