as.records | R Documentation |
Create records object from data frame
as.records(x)
## S4 method for signature 'data.frame'
as.records(x)
x |
a |
returns a records objects with the columns values in x
## Not run:
# load example rtoi
file.copy(from=system.file("ex/Navarre",package="rsat"),
to=tempdir(),
recursive = TRUE)
navarre <- read_rtoi(file.path(tempdir(),"Navarre"))
# get the records
rcds <- records(navarre)
# coerce the records to dataframr
df <- as.data.frame(rcds)
# print the dataframe
print(df)
# coerce the dataframe to records
rcds2 <- as.records(df)
# check the conversion
identical(rcds,rcds2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.