`fadn2fd()` imports the FADN data from the csv files

fadn2fd(
  fadn_data,
  mapping,
  farmbranch = c("arable", "dairy"),
  save_gdx = FALSE
)

Arguments

fadn_data

FADN

mapping

A vector with the names of the columns to be mapped

farmbranch

Either arable or dairy

save_gdx

Logical. If TRUE, it saves to gdx files

Value

A list of dataframes with the FADN data agggregated and in p_farmData format