readRegularASCII: Read ASCII table

View source: R/small-utility-functions.R

readRegularASCIIR Documentation

Read ASCII table

Description

Reads a regular ASCII table using data.table:fread. Regular means file must have the same number of columns on each line.

Usage

readRegularASCII(file.string, verbose, layers = NULL, always.read = NULL)

Arguments

file.string

Character string of the full file path.

verbose

If TRUE give extra output

layers

A character string (or a vector of character strings) specifying which optional columns to be read . NULL (default) means read all.

always.read

A character string (or a vector of character strings) specifying which columns should always be read (ie "Lon", "Lat", etc) Can directly read gzipped files (.gz) is they are present.

Value

A data.table

Author(s)

Matthew Forrest matthew.forrest@senckenberg.de


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.