cleanNames: Set column names for list of data frames

Description Usage Arguments Details Value Examples

Description

Take a list of data frames and change the column names

Usage

1

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

1
2
colnames <- c("stimulus", "dT", "dx", "dy")
servosphere <- cleanNames(servosphere, colnames)

servosphereR documentation built on May 15, 2019, 1:05 a.m.