fm_params: Calculate flight flight mill parameters

Description Usage Arguments Value

View source: R/fm_params.R

Description

Loads multiple files from a single directory. The files are expected to have a first cell that has the flight flight mill run information. This information is extracted from a selected file and new columns are created with the time information which is parsed to a POSIX format.The files are combined and tidied and extra information on species and for each of the eight flight mills id is required.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
fm_params(
  df,
  flightmill,
  elapsed_sec,
  counter,
  sector_distance,
  lowest_speed,
  min_time_interval,
  fm_duration
)

Arguments

df

Data frame to be modified.

flightmill

Parameter to be grouped for analysis.

elapsed_sec

Vector of the elapsed seconds parameter.

counter

Vector of the count parameter.

sector_distance

The part of the circumference that the insect has traveled between each sensor break.

lowest_speed

Lowest acceptable speed for a bout to become FALSE.

min_time_interval

Shortest time interval allowable between infrared breaks. This is to omit unrealistic speeds. The usual acceptable level is 0.01

fm_duration

The length of time in seconds of the flight mill run.

Value

A data frame is returned with flight parameters calculated from elapsed seconds and count grouped by each flight mill.


JayeNewman/flightmill documentation built on Jan. 3, 2022, 12:20 a.m.