View source: R/as.data.frame.prevR.r
as.data.frame.prevR | R Documentation |
This function merges the slots clusters
et rings
of
a object of class prevR
.
## S3 method for class 'prevR'
as.data.frame(x, ..., N = NULL, R = NULL, clusters.only = FALSE)
x |
object of class |
... |
not used, for compatibility with the generic method
|
N |
integer or list of integers setting elements of
|
R |
integer or list of integers setting elements of
|
clusters.only |
return only the slot |
If clusters.only = TRUE
, the function will return only the
slot clusters
of x
.
Otherwise, slots clusters
and rings
of x
will be
merged in a unique data frame. The columns of rings
will be renamed
adding a suffix like .N300.RInf.
N
and R
define the elements of rings
to extract.
If not specified (NULL
), all the elements of rings
will
be included.
base::as.data.frame()
, prevR
.
str(fdhs)
str(as.data.frame(fdhs))
## Not run:
r.fdhs <- rings(fdhs, N = c(100, 200, 300))
str(r.fdhs)
str(as.data.frame(r.fdhs, clusters.only = TRUE))
str(as.data.frame(r.fdhs))
str(as.data.frame(r.fdhs, N = 300))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.