Learn R Programming

amt (version 0.0.8)

hr_to_sf: Convert

Description

Convert

Usage

hr_to_sf(x, col, ..., level = 0.95)

Arguments

x

A tibble with a list column with individual home ranges.

col

The column where the home

...

Additional columns that should be transfered to the new tible.

level

[numeric(1)=0.95]{0-1} The home-range level.

Value

A data.frame with a simple feature column (from the sf) package.

Examples

Run this code
# NOT RUN {
data("amt_fisher")
hr <- amt_fisher %>% nest(data = -id) %>%
  mutate(hr = map(data, hr_mcp), n = map_int(data, nrow)) %>%
  hr_to_sf(hr, id, n)

hr <- amt_fisher %>% nest(data = -id) %>%
  mutate(hr = map(data, hr_kde), n = map_int(data, nrow)) %>%
  hr_to_sf(hr, id, n)


# }
# NOT RUN {
ggplot(hr) + geom_sf()

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab