read_file: Read a file and return a dataframe.

read_fileR Documentation

Read a file and return a dataframe.

Description

Read a file and return a dataframe.

Usage

read_file(
  filedir,
  filename,
  filetype = file_extension(filename),
  stringsAsFactors = FALSE,
  ...
)

Arguments

filedir

file directory, with or without trailing slash

filename

file name

filetype

"csv", "xls", or "xlsx". Defaults to the extension of filename

stringsAsFactors

logical: should character vectors be converted to factors?

...

additional parameters to read_csv or read.xlsx2

Value

a data frame


kcha193/simarioV2 documentation built on April 8, 2024, 4:51 p.m.