-
Notifications
You must be signed in to change notification settings - Fork 507
/
Copy pathderivePoints.Rd
48 lines (43 loc) · 1.09 KB
/
derivePoints.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/normalize.R
\name{derivePoints}
\alias{derivePoints}
\alias{derivePolygons}
\title{Normalize data to a data frame or Spatial object.}
\usage{
derivePoints(
data,
lng = NULL,
lat = NULL,
missingLng = missing(lng),
missingLat = missing(lat),
funcName = "f"
)
derivePolygons(
data,
lng = NULL,
lat = NULL,
missingLng = missing(lng),
missingLat = missing(lat),
funcName = "f"
)
}
\arguments{
\item{data}{map data}
\item{lng, lat}{longitude and latitude}
\item{missingLng}{whether lng is missing}
\item{missingLat}{whether lat is missing}
\item{funcName}{Name of calling function (for logging)}
}
\value{
\itemize{
\item \code{derivePoints()} returns a lng/lat data frame.
\item \code{derivePolygons()} returns a list with bbox attributes.
}
}
\description{
Given a data object and lng/lat arguments (which may be \code{NULL})
[meaning infer from data], formula [which should be evaluated with respect to the data], or
vector data [which should be used as-is]) return a lng/lat data frame.
}
\keyword{internal}