t_: t_

Description Usage Arguments Value Examples

Description

t_ is an expansion of the t() function, in which, if x is a data.frame(), it is transposed, and the first column of the output data.frame is the column names from the input data.frame.

Usage

1
t_(x)

Arguments

x

matrix, vector, or data.frame or other class usable by t().

Value

a transposed object

Examples

1
2
3
4
5
6
7
8
9
#example_df <- data.frame(x1 = rnorm(100),
#                        x2 = rnorm(100),
#                        x3 = rnorm(100),
#                         x4 = rnorm(100),
#                         x5 = rnorm(100))
#t(rnorm(100))
#t_(rnorm(100))
#t(example_df)
#t_(example_df)

TaylorAndrew/atClean documentation built on May 9, 2019, 4:21 p.m.