mutate_cond {DSSAT}R Documentation

Convenience function that allows mutating a subset of rows

Description

Convenience function that allows mutating a subset of rows

Usage

mutate_cond(.data, condition, ..., envir = parent.frame())

Arguments

.data

a tibble

condition

a logical vector for subsetting rows of '.data'

...

Name-value pairs of expressions to be evaluated by 'mutate()'

envir

environment within which expressions should be evaluated

Details

Original code taken from https://stackoverflow.com/questions/34096162/dplyr-mutate-replace-several-columns-on-a-subset-of-rows

Value

a tibble with specified rows modified


[Package DSSAT version 0.0.9 Index]