read_dir: Wrapper for different 'read functions'.

View source: R/read_dir.R

read_dirR Documentation

Wrapper for different read functions.

Description

Reads all files in a specific directory into your environment and binds them into a data.frame.

Usage

read_dir(dir = NULL, pattern = NULL, type = c("xlsx"))

Arguments

dir

Path to the directory of files

pattern

Specify a word or name to read only files with this specific word in the filename and in the directory

type

Choose filetype (e.g. xlsx) that should be read

Value

A data.frame consisting of all related files

Examples

## Not run: data_all <- read_dir(dir = C:/users/Username/data, type = "xlsx")
## Not run: data_all <- read_dir(dir = C:/logs, pattern = "logs", type = "xlsx")

dominikjung42/dstools documentation built on June 16, 2024, 2:40 a.m.