Description Usage Arguments Details Value Methods (by class) Examples
Tries to coerce any reasonable kind of data to a spherical point pattern (an
object of class "spp"
) for use by the spherespatstat package).
1 2 3 4 5 6 7 8 9 10 11 12 13 |
X |
Data which will be converted into a point pattern |
... |
Arguments passed to |
domain |
Object of class |
Converts the dataset X
to a point pattern (an object of class
"spp"
).
This function is normally used to convert an existing point pattern dataset,
stored in another format, to the "spp"
format. To create a new point
pattern from raw data such as lat,long coordinates, it is normally easier to
use the creator function spp
.
The dataset X
may be:
an object of class "spp"
a matrix or data frame with at least two columns
a structure with entries lat
, long
which are numeric
vectors of equal length
a numeric vector of length 2, interpreted as the coordinates of a single point.
The first case is typically used to change (or ensure) a specific coordinate
format by specifying either the argument domain
directly or indirectly
using the argument coord_type
which is passed to sphere
through the additional arguments .... In the last three cases the default
behaviour is to assume the domain is the entire sphere with coordinates of
type "geo_deg"
(see spp
). Alternatively the domain can
be specified by the argument domain
or through the additional
arguments ....
If X
is a matrix or data frame, the first and second columns will be
interpreted as the lat and long coordinates respectively. Any
additional columns will be ignored.
The function as.spp
is generic, with methods for the classes
"spp"
, "matrix"
, "data.frame"
and a default method.
Point pattern datasets can also be created by the function spp
.
An object of class "spp"
(see spp
) describing
the spherical point pattern and its domain.
spp
: Method for spp objects.
data.frame
: Method for data frames.
matrix
: Method for matrices.
default
: Default method.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.