read_data: A wrapper around the read.csv function allowing for creating...

Description Usage Arguments Value Examples

View source: R/read_data.R

Description

A wrapper around the read.csv function allowing for creating factors on the fly

Usage

1
2
3
4
5
6
7
read_data(
  pathname,
  sep = ",",
  dec = ".",
  create_factors = T,
  show_structure = F
)

Arguments

pathname

The path to your csv file.

sep

The column separator, default is ','.

dec

the decimal separator, default is '.'.

create_factors

If 'TRUE', all columns will be returned as factorial, default is 'TRUE'.

show_structure

Shows the structure of the final data via 'str()'.

show_head

Shows the head of the final data via 'head()'.

Value

A data frame with factors if the input data was non-numbers (integers or floats).

Examples

1
# no example yet

b-c-r/bcrtools documentation built on Jan. 30, 2022, 12:34 a.m.