anyone-can-cook / rclass1

EDUC 260A: Introduction to Programming and Data Management Using R
https://anyone-can-cook.github.io/rclass1/
5 stars 5 forks source link

Problem 2:Q2 #100

Open EuphieGe opened 1 year ago

EuphieGe commented 1 year ago

length(df_school_all) actually represents the columns of data, which is the number of attributes. But nrow(df_school_all) represents the number of pieces of data. You can also use dim(df_school_all) to view data dimensions and quantities. Result of length(df_school_all): [1] 55 Result of nrow(df_school_all): [1] 21301 Result of dim(df_school_all): [1] 21301 55