length of data frame for row count or column count R code example
Example: Returns the number of rows in this DataFrame
# Returns the number of rows in this DataFrame
df.count()
# 2
# Returns the number of rows in this DataFrame
df.count()
# 2