Learn R Programming

amt (version 0.2.2.0)

summarize_sampling_rate: Returns a summary of sampling rates

Description

Returns a summary of sampling rates

Usage

summarize_sampling_rate(x, ...)

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

summarize_sampling_rate_many(x, ...)

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

Value

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

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.

Examples

Run this code
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"))

Run the code above in your browser using DataLab