Answers for "how to get shape of dattaframe in r"

2

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

Code answers related to "how to get shape of dattaframe in r"

Browse Popular Code Answers by Language