mutsel: Link together 'dplyr::mutate()' and 'dplyr::select()'

mutselR Documentation

Link together dplyr::mutate() and dplyr::select()

Description

Link together dplyr::mutate() and dplyr::select()

Usage

mutsel(d, ...)

Arguments

d

A data frame

...

The column names to mutate/select

Details

This function allows you to dplyr::mutate() to create/modify columns, and then dplyr::select() them so that the newly mutated columns are in the order supplied to the function. Other remaining columns will follow in the same order they appear in the original data frame d.

Value

The modified data frame


pacific-hake/hake-assessment documentation built on Nov. 8, 2024, 1:16 p.m.