Learn R Programming

shotGroups (version 0.7.1)

combineData: Combine list of data frames into one

Description

Combines a list of data frames (the result from using readDataOT1, readDataOT2, or readDataMisc with combine=FALSE) into one big data frame.

Usage

combineData(DFs)

Arguments

DFs
a list of data frames with a shared set of variables.

Value

A data frame with the shared set of variables. In addition, it also contains factors identifying the original file (file), and a factor identifying all groups from different data frames (series).
...
the shared set of variables from the the data frames in the list.
group
a factor that is the original Group variable as defined by OnTarget PC/TDS.
groupVerb
a factor that codes group with more descriptive levels taken from the original project title, file name and ammunition (if available).
file
a factor that codes from which original file the data is.
series
a factor that codes each separate group across original files.
seriesNum
a factor that codes each separate group as a number that runs consecutively across original files.

Details

Assumes that the data frames in the list have a non-empty set of shared variables. Among them at least either Point.X, Point.Y or X, Y defining the bullet holes. To be useful for functions analyzeGroup or compareGroups, the data frames should also have variables Group, Distance, Aim.X, Aim.Y defining point of aim. If Group is missing, it is set to 1.

See Also

readDataMisc, readDataOT1, readDataOT2, analyzeGroup, compareGroups

Examples

Run this code
## combine list of data frames to one single data frame
data(DFlistCm)
DFcm <- combineData(DFlistCm)
str(DFcm)
head(DFcm)

Run the code above in your browser using DataLab