df_t: Transpose a numeric data frame (with/without NAs)

View source: R/mt_extra_2.R

df_tR Documentation

Transpose a numeric data frame (with/without NAs)

Description

Transpose a numeric data frame (with/without NAs)

Usage

df_t(x)

Arguments

x

a data frame

Details

It is used mostly for numeric data frame with NAs and return a

Value

a transposed data frame.

Examples

 
x <- data.frame(group = c(1,1,2,NA,2), val = c(6,4,6,3.1,NA))
x <- df_t(x)

wanchanglin/mtExtra documentation built on Aug. 2, 2024, 5:47 p.m.