obtain: "obtain" data from various data sources

Description Usage Arguments Value Examples

View source: R/obtain.R

Description

It is the first step in the OSEMN data science pipeline. It allows to read data from a chosen data source

Usage

1
obtain(from = "csv", ...)

Arguments

from

the type of data source from which the data will be obtained. This should be one of "csv", "tsv", "excel", "rds", "mysql".

...

any data source specific parameter

Value

a data frame containg the data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
#read data for a csv file
my_data <- obtain(from = "csv", file = "data.csv")

#read data for a csv file
my_data <- obtain(from = "csv", file = "data.csv")

#read data for a csv file
my_data <- obtain(from = "csv", file = "data.csv")

#read data for a csv file
my_data <- obtain(from = "csv", file = "data.csv")

## End(Not run)

akilelkamel/osemn documentation built on Dec. 23, 2021, 11:13 p.m.