b_mutate: Add new variables

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mutate.R

Description

Mimics dplyr::mutate using base R and rlang

Usage

1
2
3
4
5
6
7
b_mutate(.data, ...)

## Default S3 method:
b_mutate(.data, ...)

## S3 method for class 'split_df'
b_mutate(.data, ...)

Arguments

.data

data.frame

...

Name-value pairs of expressions

Value

data.frame

Author(s)

Jonathan Sidi

See Also

quotation

Examples

1
2
3
4
5
6
7
8
airquality%>%
b_mutate(
    lOzone = log(Ozone),
    Month  = factor(month.abb[Month]),
    cTemp  = round((Temp - 32) * 5/9, 1),
    S.cT   = Solar.R / cTemp
)%>%
head()

yonicd/bplyr documentation built on Feb. 24, 2020, 2 p.m.