fread_cols: fread columns

Description Usage Arguments Value Examples

Description

Fast data.table-based reading of a subset of columns from a table

Usage

1
fread_cols(file_name, cols_tokeep)

Arguments

file_name

path of the table to be read

cols_tokeep

character vector, names of columns to read

Value

a data.table with the cols_tokeep that are found in the table

Examples

1
fread_cols(iris, c('Sepal.Length', 'Sepal.Width')

NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.