expand_and_tpose: expand_and_tpose

Description Usage Arguments Details

View source: R/expand_and_tpose.R

Description

Background function (not user-facing).

Usage

1
expand_and_tpose(input_frame, rows_out = 10, name_col = NULL, vals_col = NULL)

Arguments

input_frame

Dataframe to be transposed.

rows_out

Number of rows to expand by.

name_col

Name of column containing transposed column names. Defaults to first column.

vals_col

Name of column containing transposed column values. Defaults to second column.

Details

Given a dataframe with at least two columns, transpose it using one column for names and another for values (defaults to 1 and 2, respectively) and duplicate into as many rows as needed.


AndrewC160/ROMOPOmics documentation built on Jan. 27, 2021, 6:57 p.m.