cash-set-.gen_tbl: A $ method for 'gen_tibble' objects

$<-.gen_tblR Documentation

A $ method for gen_tibble objects

Description

A $ method for gen_tibble objects

Usage

## S3 replacement method for class 'gen_tbl'
x$i <- value

Arguments

x

a gen_tibble

i

column name

value

a value to assign

Value

a gen_tibble

Examples

example_gt <- load_example_gt("gen_tbl")

# Add a new column
example_gt$region <- "East"

example_gt

tidypopgen documentation built on Aug. 28, 2025, 1:08 a.m.