trim: trim

Description Usage Arguments Author(s) Examples

View source: R/package.R

Description

trim removes columns and rows outside of the bounds set in the function. Right now the default it set to use the design1 column as outside the bounds, and the "end" design element in the design1 column as outside the bounds. If only lcol or lrow are defined the data frame will keep the current number of columns/rows for the undefined value.

Usage

1
trim(filename,lrow=a,lcol=a)

Arguments

filename

A data frame object

lrow

the number of rows to be kept, the default value (auto) is to keep the current number of rows unless lcol is also default, then the function will find the boundaries defined in the design column

lcol

the number of columns to be kept, the default value is to keep the current number of columns unless lrow is also default, then the function will find the boundaries defined in the design column

Author(s)

Tony Boy

Examples

1
2
3
df <- data.frame(1:10,1:10)
df$design1 <- c(0,0,0,0,0,"end",0,0,0,0)
d <- trim(df)

tonyelowsky/water documentation built on Nov. 13, 2019, 12:36 a.m.