Get the Columns of Data Frame in R
Data Frame in R is a two-dimensional array or table. Rows in the data frame are observations and columns in the data frame are variables. Using the colnames() and names() function in R,we can get the columns of data frame. colnames() function in R is used to get the columns …