generateRandomFlight: generates a fake flight data. it's all random so it doesn't...

View source: R/csgfix.r

generateRandomFlightR Documentation

generates a fake flight data. it's all random so it doesn't behave like an actual bird.

Description

generates a fake flight data. it's all random so it doesn't behave like an actual bird.

Usage

generateRandomFlight(
  origin = c(0, 0),
  names = "csg",
  obs = 1000,
  maxturn = 15,
  timestep = 3600,
  timestart = Sys.time(),
  multi = 1/500,
  rand = stupidRnorm,
  fakemisc = TRUE,
  n = NULL
)

Arguments

origin:

numeric vector of length 2, the coordinates where bird will start

names:

character, "csg" or "movebank", depending on how you want the columns of the resulting data to be named

obs:

numeric, number of observations to create

maxturn:

numeric, the maximum change in heading in each step (measured in degrees). can turn maxturn left or right.

timestep:

numeric, the number of seconds between each observation

timestart:

POSIXct, the time you want the first observation to be

multi:

numeric, the distance the bird travels in each observation (in change in lat/long) will be a random number in [0,multi)

rand:

function, a function that generates random numbers in [0,1], where the first parameter is the number of numbers to generate

fakemisc:

boolean, if you want to fake the other columns needed for bank()

n:

numeric, the Animal_ID or NULL to randomize it


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