unimport | R Documentation |
Reads a file in 6 data types (Rscript, Rimage, Robject, data.frame, excel, csv, sidiap and textfile) and creates a data frame from it.
unimport(type, path, filename, exact_string = F, ...)
type |
The data type of the file to import. Can be Rscript, Rimage, data.frame, excel, csv, sidiap and textfile. |
path |
Location of the file to import. |
filename |
Name of the filename. Can be a substring of this. |
exact_match |
default is FALSE. If TRUE then the files will be searched for that have exactly the requested file name and no more characters. |
... |
df123 <- data.frame(a=rnorm(10), b=runif(10)) # Creates a data frame object
saveRDS(df123,paste0(getwd(),"/df123.rds")) # we save it on our current directory
# we load it with unimport
unimport(type = "data.frame", path = getwd(), filename = "df")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.