Learn R Programming

tidytable (version 0.7.0)

new_tidytable: Create a tidytable from a list

Description

Create a tidytable from a list

Usage

new_tidytable(x = list(), n = NULL)

Arguments

x

A named list of equal-length vectors. The lengths are not checked; it is the responsibility of the caller to make sure they are equal.

n

Number of rows. If NULL, will be computed from the length of the first element of x.

Examples

Run this code
# NOT RUN {
l <- list(x = 1:3, y = c("a", "a", "b"))

new_tidytable(l)
# }

Run the code above in your browser using DataLab