combine_nest-methods: Combine columns and nest data for each permutation

Description Usage Arguments Details Value Examples

Description

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

Usage

1
2
3
4
5
6
7
combine_nest(.data, .names_from, .values_from)

## S4 method for signature 'spec_tbl_df'
combine_nest(.data, .names_from, .values_from)

## S4 method for signature 'tbl_df'
combine_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

1
combine_nest(mtcars_tidy, car_model, c(feature,value))

nanny documentation built on July 1, 2020, 10:20 p.m.