This is an ordering of column names containing both numbers and text. I have a dataframe that sprang from dcastand has 200 rows. I have a problem with the order.
Column names are in the following format:
names(DF) <- c('Testname1.1', 'Testname1.100','Testname1.11','Testname1.2',...,Testname2.99)
Edit: I would like to have ordered columns:
names(DF) <- c('Testname1.1, Testname1.2,Testname1.3,...Testname1.100,Testname2.1,...Testname 2.100)
There is a column in the original input that indicates the day, but is not used when I "drop" the data. Is there a way to specify the "dcast" function to numerically arrange column names?
What would be the easiest way to get columns ordered as needed in R?
Thank you so much!
source
share