Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

summarize_sampling_rate

Returns a summary of sampling rates


Description

Returns a summary of sampling rates

Usage

summarize_sampling_rate(x, ...)

## S3 method for class 'track_xyt'
summarize_sampling_rate(
  x,
  time_unit = "auto",
  summarize = TRUE,
  as_tibble = TRUE,
  ...
)

summarize_sampling_rate_many(x, ...)

## S3 method for class 'track_xyt'
summarize_sampling_rate_many(x, cols, time_unit = "auto", ...)

Arguments

x

A track_xyt.

...

Further arguments, none implemented.

time_unit

[character(1) = "auto"]
Which time unit will be used.

summarize

A logical. If TRUE a summary is returned, otherwise raw sampling intervals are returned.

as_tibble

A logical. Should result be returned as tibble or as table.

cols

Columns used for grouping.

Value

Depending on summarize and as_tibble, a vector, table or tibble.

Examples

data(deer)
amt::summarize_sampling_rate(deer)

data(amt_fisher)
# Add the month
amt_fisher %>% mutate(yday = lubridate::yday(t_)) %>%
summarize_sampling_rate_many(c("id", "yday"))

amt

Animal Movement Tools

v0.1.4
GPL-3
Authors
Johannes Signer [aut, cre], Brian Smith [ctb], Bjoern Reineking [ctb], Ulrike Schlaegel [ctb], John Fieberg [ctb], Scott LaPoint [dtc]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.