Splits filenames column to create new columns.

util_fn2columns(df, fn = "fn", split = "_|\\.", colnames = NULL)

Arguments

df

R object. Data frame.

fn

Character string. Column name of filenames. Defaults to fn = "fn".

split

Character string. Regular expression used to split fn. Defaults to split = "_|\\." to split using "_" or ".".

colnames

Character vector. Column names to use to name the new columns produced. This should have the same length as the columns produced.

See also

Author

Ivan Jacob Agaloos Pesigan