bank: changes data to Movebank format for use with ctmm package

View source: R/csgfix.r

bankR Documentation

changes data to Movebank format for use with ctmm package

Description

changes data to Movebank format for use with ctmm package

Usage

bank(
  data,
  projectionType = "na",
  timeformat = "%m/%d/%Y %T",
  ct = TRUE,
  tonad83 = FALSE
)

Arguments

data:

dataframe, the input data

projectionType:

character or function, NULL if you don't want to convert lat/long to X/Y (if you want to use an existing X and Y). Otherwise a character (the name of a projection), or a function(lat, long, datetime) where lat and long are vectors of numbers and datetime is a vector of POSIXct corresponding to the time of those observations. should return a data frame with two numeric columns, x and y

timeformat:

character (format for use in as.POSIXct), the format Date_Time is in

ct:

boolean, FALSE if you want time to be saved as a string in move bank format, TRUE if you want it as a POSIXct

tonad83:

boolean, TRUE if you want to convert from WGS84 to NAD83 before projection (only used when projectionType is a character)


StevenRunyon/csgfix documentation built on March 31, 2024, 5:36 a.m.