transfData: Transfer raw dataset to the standard dataset (seasonal...

View source: R/seasonalTools.R

transfDataR Documentation

Transfer raw dataset to the standard dataset (seasonal analysis toolbox)

Description

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.)

Usage

transfData(data, dateFormat, roundValue = NULL, lengthUnit = "km")

Arguments

data

The raw dataset.

dateFormat

Charater string indicates the format of date variable.

roundValue

Round GPS coordinate to roundValue with unit meter. If NULL (default), no rounding will be processed.

lengthUnit

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.

Value

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]).

Author(s)

Chaoran Hu

See Also

as.Date has parameter format, which is the same as the parameter dateFormat in this function.


smam documentation built on Aug. 21, 2023, 9:09 a.m.

Related to transfData in smam...