Answers for "checking column names in r"

2

check type of column in r

#in R
sapply(my.data, class)
Posted by: Guest on June-29-2020
1

r get name of column in data frame

colnames(<dataframe>)
#or
names(<dataframe>)
Posted by: Guest on February-26-2021

Code answers related to "checking column names in r"

Browse Popular Code Answers by Language