permute_nest-methods: Permute columns and nest data for each permutation

permute_nestR Documentation

Permute columns and nest data for each permutation

Description

permute_nest() takes as input a 'tbl' formatted as | <element> | <feature> | <value> | <...> | and returns a 'tbl' with data nested for each permutation. The package used in the backend is gtools (Gregory R. Warnes, Ben Bolker, and Thomas Lumley, 2020)

Usage

permute_nest(.data, .names_from, .values_from)

## S3 method for class 'spec_tbl_df'
permute_nest(.data, .names_from, .values_from)

## S3 method for class 'tbl_df'
permute_nest(.data, .names_from, .values_from)

Arguments

.data

A 'tbl' formatted as | <element> | <feature> | <value> | <...> |

.names_from

The columns to build the permutations on (e.g., c(col1, col2))

.values_from

The columns to be nested for each permutation (e.g., c(col3, col4, col5))

Details

\lifecycle

maturing

...

Value

A nested 'tbl'

A 'tbl' with filled abundance

A 'tbl' with filled abundance

Examples


permute_nest(mtcars_tidy, car_model, c(feature,value))


stemangiola/nanny documentation built on July 29, 2023, 1:23 a.m.