read_protti function

Read, clean and convert

Read, clean and convert

The function uses the very fast fread function form the data.table package. The column names of the resulting data table are made more r-friendly using clean_names from the janitor package. It replaces "." and " " with "_" and converts names to lower case which is also known as snake_case. In the end the data table is converted to a tibble.

read_protti(filename, ...)

Arguments

  • filename: a character value that specifies the path to the file.
  • ...: additional arguments for the fread function.

Returns

A data frame (with class tibble) that contains the content of the specified file.

Examples

## Not run: read_protti("folder\\filename") ## End(Not run)
  • Maintainer: Jan-Philipp Quast
  • License: MIT + file LICENSE
  • Last published: 2024-10-21