All functions |
|
|---|---|
Calculates the absolute difference of the reference and the scenarios in a new column |
|
`fadn2fd()` imports the FADN data from the csv files |
|
`fd_desc()` calculates the descriptive statistics of the farm data |
|
`first_match_col()` finds the first matching column in a dataframe |
|
Join BIN data together, make joined dataset wider, and group by a mapping |
|
Load from GDX |
|
Reshape from wide to long and save to GDX |
|
Generate descriptive statistics and save to GDX |
|
`is.nan.data.frame()` checks if there are any NaNs in a dataframe (`is.nan()` does not work for dfs) |
|
`load_dumps()` loads the p_res from the dump gdx files |
|
`load_dump_marg()` loads any marginal from the dump gdx files |
|
`load_dump_par()` loads any parameter from the dump gdx files |
|
`load_dump_scalar()` loads any scalar from the dump gdx files |
|
Retrieve mode of vector |
|
`replace_first_match_col()` replaces the name of the column in `first_match_col()` with what the user inputs |
|
Improved function to load variables from gdx files (from Renger in GAMSWorld forum) |
|
`rm_lown()` removes aggregated farms with less than 15 farms for reporting |
|
Execute FarmDyn |
|
Data analysis function for repeated tasks This loads p_res from different scenarios |
|
Calculates the relative difference of the reference and the scenarios in a new column |
|
|
|
Replace first or last line in strings |
Reshape from wide to long and save to GDX Create sample farms |
|
Load variables from dump gdx files and return a data.table |
|
Write batch file for batch file execution mode in FarmDyn |
|