transfData {smam}R 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:

Author(s)

Chaoran Hu

See Also

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


[Package smam version 0.7.2 Index]