Skip to contents

Get list defining renamings in the form of from = to assignments from a data frame read by a function that may be specified.

Usage

get_renamings(from, to = "column", data = NULL, reader = read_csv_file, ...)

Arguments

from

name of column of data to take the "from" values from

to

name of column of data to take the "to" values from

data

data frame defining renamings

reader

reader function providing data. Default: kwb.prep:::read_csv_file

...

arguments passed to the reader function

Value

list defining renamings as e.g. expected by renameColumns