...
 
Commits (2)
......@@ -36,7 +36,7 @@ Suggests:
rmarkdown,
asnipe
SystemRequirements: GEOS (>= 3.2.0)
RoxygenNote: 7.0.2
RoxygenNote: 7.1.0
VignetteBuilder: knitr
Roxygen: list(markdown = TRUE)
BugReports: https://github.com/ropensci/spatsoc/issues
......
......@@ -3,11 +3,13 @@
\name{DT}
\alias{DT}
\title{Movement of 10 "Newfoundland Bog Cows"}
\format{A data.table with 14297 rows and 5 variables: \describe{
\format{
A data.table with 14297 rows and 5 variables: \describe{
\item{ID}{individual identifier} \item{X}{X coordinate of the relocation
(UTM 21N)} \item{Y}{Y coordinate of the relocation (UTM 21N)}
\item{datetime}{character string representing the date time}
\item{population}{sub population within the individuals} }}
\item{population}{sub population within the individuals} }
}
\description{
A dataset containing the GPS relocations of 10 individuals in winter
2016-2017.
......
......@@ -64,8 +64,8 @@ DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc"))
# Cast the character column to POSIXct
DT[, datetime := as.POSIXct(datetime, tz = 'UTC')]
# Proj4 string for example data
utm <- '+proj=utm +zone=36 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs'
# EPSG code for example data
utm <- '+init=epsg:32736'
# Build polygons for each individual using kernelUD and getverticeshr
build_polys(DT, projection = utm, hrType = 'kernel',
......
......@@ -95,8 +95,8 @@ DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc"))
# Cast the character column to POSIXct
DT[, datetime := as.POSIXct(datetime, tz = 'UTC')]
# Proj4 string for example data
utm <- '+proj=utm +zone=36 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs'
# EPSG code for example data
utm <- '+init=epsg:32736'
group_polys(DT, area = FALSE, 'mcp', list(percent = 95),
projection = utm,
......