read_dir: Read an entire directory

Description Usage Arguments Details Value Examples

View source: R/read_dir.R

Description

read_dir Reads all files with specified extension(s) from a directory.

Usage

1
read_dir(path = getwd(), type = c("csv"))

Arguments

path

A string to a windows directory.

type

A vector of strings containing file extensions.

Details

Files types currently supported include .csv, .xlsx and .txt. All .txt files will be read as csv files.

Value

A list of objects read from path.

Examples

1
read_dir("P:/Knowledge/Data Resources/Microdata/GSS")

faouser1/FAO documentation built on Nov. 4, 2019, 12:35 p.m.