- fileNames
Vector of the names of CSV files containing trajectory
coordinates. All of the files must have the same columns. All file names
must be unique. If rootDir
is not NULL
, then the file names
are treated as regular expressions.
- fps
Vector of frames-per-second values corresponding to the
trajectories in fileNames
. If length is 1, it is repeated to
length(fileNames).
- scale
Vector of scale values corresponding to the trajectories in
fileNames
. May be specified as character expressions (e.g. "1 /
1200") rather than numeric values. If NULL, the trajectories will not be
scaled. If length is 1, it is repeated to length(fileNames).
- spatialUnits
Abbreviated name of spatial coordinate units after
scaling, e.g. "m".
- timeUnits
Abbreviated name of temporal units, e.g. "s".
- csvStruct
A list which identifies the columns in each CSV file which
contain x-, y-, and optionally time-values.
- smoothP
Filter order to be used for Savitzky-Golay smoothing (see
TrajSmoothSG
). If NA
, no smoothing is performed.
- smoothN
Filter length to be used for Savitzky-Golay smoothing (must be
odd, see TrajSmoothSG
). If NA
, no smoothing is
performed.
- translateToOrigin
If TRUE, each trajectory is translated so that its
starting point is at (0, 0).
- rootDir
Optional name of a top level directory which contains the CSV
files. If rootDir
is not NULL, the CSV files may be located anywhere
within rootDir
or its sub-directories.
- csvReadFn
Function used to read the CSV files. Required to accept
arguments filename, ...
, and return a data frame of coordinates, or
a list of multiple data frames (see read.csv
,
read.csv2
). The default function calls
read.csv
with argument stringsAsFactors =
FALSE
.
- ...
Additional arguments passed to csvReadFn
.