## How to Use the nrow() Function in R

The nrow() function in R is “used to get the rows for an object“. The nrow() function can easily extract the number of rows in an object that can be a matrix, data frame, or even a dataset. Syntax nrow(data) Parameters The data is a required argument that can be vector, array, data frame, NULL, … Read more