Convert
Convert
hr_to_sf(x, ...) ## S3 method for class 'tbl_df' hr_to_sf(x, col, ...)
x |
A |
... |
Additional columns that should be transferred to the new |
col |
The column where the home |
A data.frame
with a simple feature column (from the sf
) package.
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() ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.