Package 'DataLoader'

Title: Import Multiple File Types
Description: Functions to import multiple files of multiple data file types ('.xlsx', '.xls', '.csv', '.txt') from a given directory into R data frames.
Authors: Srivenkatesh Gandhi<[email protected]>, Kreshnaa Raam S Bethusamy <[email protected]>
Maintainer: Srivenkatesh Gandhi <[email protected]>
License: GPL (>= 2)
Version: 1.3
Built: 2024-11-15 03:51:32 UTC
Source: https://github.com/cran/DataLoader

Help Index


Importing multiple file types and storing it into a list of data frames

Description

importAllMdf function loads various data file types in a selected directory to separate dataframes, and stores them as a list. Data frames can be accessed as list elements by using "listname$filename" or "listname[]".

Usage

importAllMdf(path = NULL)

Arguments

path

the directory in which the files are stored. If path is not given, interactive dialog box will be used to select directory

Value

a single list of dataframes containing all the files imported and stored as dataframes.


Importing multiple file types and storing it into a Single R Dataframe

Description

importAllSdf function loads various data file types in a selected directory to dataframes, combines all the data frames and stores it as a single data frame. Note that all the files to be loaded should have the same number of columns for rbind to work

Usage

importAllSdf(path = NULL)

Arguments

path

the directory in which the files are stored. If path is not given, interactive dialog box will be used to select directory

Value

a single dataframe containing all the files imported and rbinded into one.


Importing multiple csv files and storing it into a list of data frames

Description

importCsv function loads .csv file types in a selected directory to separate dataframes, and stores them as a list. Data frames can be accessed as list elements by using "listname$filename" or "listname[]".

Usage

importCsv(path = NULL)

Arguments

path

the directory in which the files are stored. If path is not given, interactive dialog box will be used to select directory

Value

a single list of dataframes containing all the files imported and stored as dataframes.


Importing multiple csv files(";" delimited) and storing it into a list of data frames

Description

importCsv2 function loads .csv file types in a selected directory to separate dataframes, and stores them as a list. Data frames can be accessed as list elements by using "listname$filename" or "listname[]".

Usage

importCsv2(path = NULL)

Arguments

path

the directory in which the files are stored. If path is not given, interactive dialog box will be used to select directory

Value

a single list of dataframes containing all the files imported and stored as dataframes.


Importing multiple excel files and storing it into a list of data frames

Description

importExcel function loads excel data file types(.xlsx, .xls) in a selected directory to separate dataframes, and stores them as a list. Data frames can be accessed as list elements by using "listname$filename" or "listname[]".

Usage

importExcel(path = NULL)

Arguments

path

the directory in which the files are stored. If path is not given, interactive dialog box will be used to select directory

Value

a single list of dataframes containing all the files imported and stored as dataframes.


Importing multiple pipe delimitted files and storing it into a list of data frames

Description

importPipe function loads various text files which use a Pipe delimitter(|) in a selected directory to separate dataframes, and stores them as a list. Data frames can be accessed as list elements by using "listname$filename" or "listname[]".

Usage

importPipe(path = NULL)

Arguments

path

the directory in which the files are stored. If path is not given, interactive dialog box will be used to select directory

Value

a single list of dataframes containing all the files imported and stored as dataframes.


Importing multiple tab delimitted files and storing it into a list of data frames

Description

importTab function loads various text files which uses a tab delimitter in a selected directory to separate dataframes, and stores them as a list. Data frames can be accessed as list elements by using "listname$filename" or "listname[]".

Usage

importTab(path = NULL)

Arguments

path

the directory in which the files are stored. If path is not given, interactive dialog box will be used to select directory

Value

a single list of dataframes containing all the files imported and stored as dataframes.


Importing multiple tilde delimitted files and storing it into a list of data frames

Description

importTilde function loads various text files which uses a tilde delimitter(~) in a selected directory to separate dataframes, and stores them as a list. Data frames can be accessed as list elements by using "listname$filename" or "listname[]".

Usage

importTilde(path = NULL)

Arguments

path

the directory in which the files are stored. If path is not given, interactive dialog box will be used to select directory

Value

a single list of dataframes containing all the files imported and stored as dataframes.