How to get the number of rows in a dataframe in R

> nrow(dataframe)
[1] [number]

 
0
Kudos
 
0
Kudos

Now read this

How to read data from an Excel .xlsx file in R

To read directly from a .xlsx in the same directory as your R script: > data <- read.xlsx(“yourdata.xlsx”) … or … To read from a workspace directory containing a .xlsx file: > wdir = “C:/workspace/yourdirectory” > data <-... Continue →