View source: R/prepare_atmosphere.R
copy_column | R Documentation |
Helper function: copy column
copy_column(df, column, number_of_new_columns)
df |
data fram |
column |
name of colum to copy |
number_of_new_columns |
number of columns to be copied |
df with copied column names
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.