Learn R Programming

protti (version 0.9.0)

read_protti: Read, clean and convert

Description

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.

Usage

read_protti(filename, ...)

Value

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

Arguments

filename

a character value that specifies the path to the file.

...

additional arguments for the fread function.

Examples

Run this code
if (FALSE) {
read_protti("folder\\filename")
}

Run the code above in your browser using DataLab