fccu_match_rows: Match the Length of a Data Frame and Vector

Description Usage Arguments Value

View source: R/fc_common_utils.R

Description

Make data and vector same length/nrow as other vector. Remove entries from data and a until a is the same length as b. By checking if a[i] == b[i] until you find one that isn't.

Usage

1

Arguments

a

A vector to be trimmed, must be from data as well (say, rownames()).

b

The vector of shorter length that you want length(a) and nrow(data) to be.

data

Some data frame you want trimmed.

Value

A trimmed data frame.


kmorrisongr/fcan documentation built on Sept. 9, 2020, 10:12 a.m.