unimport: unimport

View source: R/unimport.R

unimportR Documentation

unimport

Description

Reads a file in 6 data types (Rscript, Rimage, Robject, data.frame, excel, csv, sidiap and textfile) and creates a data frame from it.

Usage

unimport(type, path, filename, exact_string = F, ...)

Arguments

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.

...

Examples

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")

douve/UEMR documentation built on Aug. 28, 2023, 2:30 p.m.