Transfer the raw location dataset of animal to the standard dataset,
which is acceptable in this packages. The raw dataset contains at least
four components: 1. t1
: data information. 2. dt..hr.
: the
difference of time between two sample points. 3. e1
: the GPS
coordinate of east-west. 4. n1
: the GPS coordinate of north-south.
(These weird variable names are from the original GPS data. We will
change them in later version.)
transfData(data, dateFormat, roundValue = NULL, lengthUnit = "km")
A data.frame
containing the following components, which is
standard format of dataset in this package:
date: tells us the date of collecting this sample point.
cumTime: cumulative time line. The collection of this data starts from time 0 in this time line. (Time unit is hours.)
centerE: the centered east-west GPS coordinate with the center is
the starting point (when cumTime[1]
).
centerN: the centered north-south GPS coordinate with the center is
the starting point (when cumTime[1]
).
The raw dataset.
Charater string indicates the format of date variable.
Round GPS coordinate to roundValue
with unit meter.
If NULL (default), no rounding will be processed.
Charater string indicates the length unit of GPS coordinate, which can be "m" or "km"(default). Usually, we recommend not change the default setup of this parameter. Otherwise, numerical computation problem will happen.
Chaoran Hu
as.Date
has parameter format
, which is the
same as the parameter dateFormat
in this function.