summarize_sampling_rate: Returns a summary of sampling rates

View source: R/eda_sampling_rate.R

summarize_sampling_rateR Documentation

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 documentation built on June 25, 2024, 1:14 a.m.