importData: Imports the data

View source: R/importData.R

importDataR Documentation

Imports the data

Description

It helps import the data set, whether it's in a tsv, csv, txt, or excel format.

Usage

importData(filepath, filetype = "excel", separator = NULL, ...)

Arguments

filepath

Path of the file to be imported.

filetype

The type of file to be imported. By default, it's "excel", but also accepts "tsv", "csv", or "txt".

separator

The delimiter in your data set, if it's a "txt" file.

...

Any other argument that can be passed in the read_csv, read_tsv, read_delim, or read_excel functions, if your data set is a csv, tsv, txt, or an excel file, respectively.

Value

A data frame

Examples

## Not run: 
# If it's an excel file
importData("path/to/file")

# If it's a csv file
importData("path/to/file", filetype = "csv")

# If it's a txt file with each observation separated by a "|"
importData("path/to/file", filetype = "txt", separator = "|")

## End(Not run)

arunangshu-github/CellSurvAssay documentation built on June 15, 2022, 6:53 a.m.