
Last chance! 50% off unlimited learning
Sale ends in
as.hyperframe(x, ...)
## S3 method for class 'default':
as.hyperframe(x, \dots)
## S3 method for class 'data.frame':
as.hyperframe(x, \dots)
## S3 method for class 'hyperframe':
as.hyperframe(x, \dots)
## S3 method for class 'listof':
as.hyperframe(x, \dots)
"hyperframe"
created by
hyperframe
. The generic function as.hyperframe
converts any suitable kind
of data into a hyperframe.
There are methods for the classes
data.frame
and listof
, and a default method,
all of which convert data that is like a hyperframe into
a hyperframe object. (The method for the class listof
converts a list of objects, of
arbitrary type, into a hyperframe with one column.)
These methods do not discard any information.
There are also methods for other classes
(see as.hyperframe.ppx
) which extract
the coordinates from a spatial dataset. These methods
do discard some information.
hyperframe
,
as.hyperframe.ppx
df <- data.frame(x=runif(4),y=letters[1:4])
as.hyperframe(df)
sims <- list()
for(i in 1:3) sims[[i]] <- rpoispp(42)
as.hyperframe(as.listof(sims))
Run the code above in your browser using DataLab