as_tibble_speciome: Turn a data vector into a tibble

View source: R/as_tibble_speciome.R

as_tibble_speciomeR Documentation

Turn a data vector into a tibble

Description

Reshapes a speciome data vector into a matrix and converts it into a tibble.

Usage

as_tibble_speciome(x, ncol = 1)

Arguments

x

Vector of data values

ncol

If integer, number of columns by which to split the vector. Use a negative value to duplicate the vector into a longer one-column tibble instead of splitting it. If integer vector, then each element in the x will be duplicated a number of times defined by its corresponding (positive) entry in ncol. So in this case, ncol and x must have the same length.

Value

A tibble containing the simulation data

See Also

read_speciome

Examples


as_tibble_speciome(1:3)
as_tibble_speciome(1:3, ncol = 3)
as_tibble_speciome(1:3, ncol = -2)
as_tibble_speciome(1:3, ncol = 1:3)


rscherrer/speciomer documentation built on March 11, 2023, 5:37 p.m.