cleanNames {servosphereR} | R Documentation |
Set column names for list of data frames
Description
Take a list of data frames and change the column names
Usage
cleanNames(list, colnames)
Arguments
list |
A list of data frame objects. |
colnames |
A vector of strings holding the names for the columns. |
Details
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.
Value
Returns the list of data frames provided with the column names
modified based on the provided vector colnames
.
Examples
colnames <- c("stimulus", "dT", "dx", "dy")
servosphere <- cleanNames(servosphere, colnames)
[Package servosphereR version 0.1.1 Index]