freader: read a ScanR data table

Description Usage Arguments Details Value

View source: R/fun-ferader.R

Description

Use data.table::fread to (quickly) load a parameter data file generated by ScanR and run the usual operations that make it usable.

Usage

1
freader(path, pattern = "_")

Arguments

path

path to file

pattern

regular expression to select variables to keep

Details

This is a simple wrapper for fread from the package data.table. It also uses some dplyr functions to modify the resulting data.table. Some columns will be discarded. Usually the variables that are to be kept will contain a specific pattern, e.g. an underscore (_).

The data.table class is stripped from the object.

Value

a data frame


olobiolo/acutils documentation built on Nov. 28, 2021, 9:35 p.m.