read_fwf_fixedheader: Reads a fixed width formatted data with the header in the...

Description Usage Arguments Value

View source: R/utils.r

Description

The base function read.fwf can read fixed width formatted data, however when including an header, this needs to have another format (e.g. tab-separated, as specified by the sep argument). This function allows to read data with the header specifically in the same fixed width format as the data.

Usage

1

Arguments

file

name of the file.

widths

integer vector, giving the widths of the fixed-width fields (of one line).

...

further arguments to be passed to read.fwf.

Value

A data.frame as produced by read.fwf which is called internally.


pezzacolori/boris-r-misc documentation built on Sept. 14, 2021, 1:46 a.m.