powered by
Take a list of data frames and change the column names
cleanNames(list, colnames)
A list of data frame objects.
A vector of strings holding the names for the columns.
Returns the list of data frames provided with the column names modified based on the provided vector colnames.
colnames
Once a list of data frames is generated with the getFiles function, use this function to set up the column names for all the data frames in the list.
Other functions in this package require that the change in time and position columns are named "dT", "dx", and "dy", respectively.
# NOT RUN { colnames <- c("stimulus", "dT", "dx", "dy") servosphere <- cleanNames(servosphere, colnames) # }
Run the code above in your browser using DataLab