dataFrameTwoVecs: Build a data.frame from two vectors of potential different...

View source: R/DesignContrast.R

dataFrameTwoVecsR Documentation

Build a data.frame from two vectors of potential different lengths

Description

Build a data.frame from two vectors of potential different lengths

Usage

dataFrameTwoVecs(vec1, vec2, col.names = c("Vec1", "Vec2"))

Arguments

vec1

A vector

vec2

Another vector

col.names

A character vector of length 2 giving column names of the output data.frame.

The shorter vector of the two are extended to the same length by appending empty strings.

Value

A data.frame of two columns. The row count matches the longer vector

Examples

dataFrameTwoVecs(LETTERS[1:5], letters[2:9])

bedapub/ribiosExpression documentation built on Sept. 2, 2023, 4:37 a.m.