getSection: Get dataframe sections

View source: R/fileRead.R

getSectionR Documentation

Get dataframe sections

Description

Gets a section of a data.frame that is divided by NA's or ""

Usage

getSection(genericDataFileDataFrame, lookFor, transpose = FALSE,
  required = TRUE)

Arguments

genericDataFileDataFrame

A data frame of lines

lookFor

A string identifier to user as regext for the line before the start of the seciton

transpose

a boolean to set if the data should be transposed

required

logical Should the function throw an error if the field does not exist?

Value

A dataframe of the of section in the generic excel file

Intended for data.frames that have been read directly from a csv or xls and have sections with names


mcneilco/racas documentation built on Feb. 22, 2024, 10:07 p.m.