powered by
Function headm displays the first part and the dimension of a data set.
headm
headm(X)
first 6 rows and columns of a dataset, number of rows, number of columns, dataset class.
A matrix or dataframe.
n <- 1000 p <- 200 X <- matrix(rnorm(n * p), nrow = n) headm(X)
Run the code above in your browser using DataLab