copy_column: Helper function: copy column

View source: R/prepare_atmosphere.R

copy_columnR Documentation

Helper function: copy column

Description

Helper function: copy column

Usage

copy_column(df, column, number_of_new_columns)

Arguments

df

data fram

column

name of colum to copy

number_of_new_columns

number of columns to be copied

Value

df with copied column names

Examples

# Beispiel-Tibble
tb <- tibble::tibble(
ID = 1:5,
Wert = c(10, 20, 30, 40, 50)
)

# Anwendung der Funktion
tb_neu <- copy_column(tb, "Wert", 3)
print(tb_neu)


KWB-R/flextreat.hydrus1d documentation built on Jan. 13, 2025, 10:48 a.m.