Learn R Programming

heemod (version 1.0.2)

create_df_from_tabular: Load Data From a Folder Into an Environment

Description

Reads files containing data frames (in tabular format) from a directory, and loads them in an environment to be available during an analysis.

Usage

create_df_from_tabular(df_dir, df_envir)

Value

The environment with the data frames.

Arguments

df_dir

A directory containing the files.

df_envir

An environment.

Details

The files must be in .csv, .xls, or .xlsx format. A file my_df.csv (or my_df.xls, or my_df.xlsx) will be loaded as a data frame my_df.