Learn R Programming

tidypopgen (version 0.4.3)

mutate.gen_tbl: A mutate method for gen_tibble objects

Description

A mutate method for gen_tibble objects

Usage

# S3 method for gen_tbl
mutate(..., deparse.level = 1)

Value

a gen_tibble

Arguments

...

a gen_tibble and a data.frame or tibble

deparse.level

an integer controlling the construction of column names.

Examples

Run this code
example_gt <- load_example_gt("gen_tbl")

# Add a new column
example_gt %>% mutate(region = "East")

Run the code above in your browser using DataLab