createEnvDataFrame: Convert data frame to Movebank Env-Data request file

Description Usage Arguments Value See Also Examples

View source: R/createEnvDataDataFrame.R

Description

Takes a data frame of latitudes, longitudes and times and generates the strictly formatted data frame needed to upload to Env-Data to obtain covariates for movebank.

Usage

1
createEnvDataFrame(lats, lons, times, savefile = TRUE, fileout = NULL)

Arguments

savefile

whether to save a csv file

fileout

name of csv file to save

lats, lons

vectors of latitude and longitude

times

vectors of POSIX times

Value

Either nothing (if csv file saved) or the character string data frame with correct formatting.

See Also

createEnvDataGrid, createEnvDataRequest, uploadEnvDataRequest

Examples

1
2
3
4
5
 lats <- seq(38.8, 39.0, length = 40)
 lons <- seq(-77.12, -76.91, length = 40) 
 times <- seq(ymd("2010-12-31"), ymd("2011-12-31"), length = 40)
 example <- createEnvDataFrame(lats, lons, times, savefile = FALSE)
 head(example)

ABoVE-AotM/above documentation built on May 28, 2020, 6:08 a.m.