I am trying to set up a proper dataframe, and has problem setting the headers of my dataframe (df).
I am loading the headers from a .csv file:
headers <- read.csv("headers", header = TRUE, sep = " ")
Then using this command to set the headers:
names(df) <- headers
As a result, the headers are now "locical(0)" in all the columns of the dataframe.
Would anyone know why?
Thanks for the help!