This function allows you to "claim" specified columns from a data frame and store them in a global data frame named `.kollection` (or a custom name). If `.kollection` doesn't exist, it's created. If it exists but has a different number of rows, it's reinitialized to match the input data frame's row count.

claim(df, ..., .name = ".kollection")

Arguments

df

The input data frame from which to claim columns.

...

Unquoted column names from `df` to be claimed.

.name

The name of the global data frame to store the claimed columns. Defaults to `".kollection"`.

Value

Invisibly returns the original data frame `df`.