rds_or_rda | R Documentation |
This function will determine if a file is a .rds
or .rda
/.RData
file
and return "rds"
or "rda"
respectively, or return NA
if it is neither
or if the file is inaccessible. It uses the magic bits of the file to make a
determination, so it is not dependent on the file name extension, and it
automatically adapts to whether the file was saved as binary or ascii and if
it is compressed or not.
rds_or_rda(filepaths)
filepaths |
A character vector |
A character vector the same length as filepaths
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.