join_to_fcst | R Documentation |
Works in a similar way to the join family of functions, excpet that the join type is specified as an argument.
join_to_fcst( .fcst, .join, join_type = c("inner", "left", "right", "full", "semi", "anti"), by = NULL, force_join = FALSE, keep_x = TRUE, keep_y = FALSE, ... )
.fcst |
A |
.join |
A data frame to join to each table in the |
join_type |
How to join the data frame. Acceptable values are: "inner",
"left", "right", "full", "semi", "anti". See |
by |
Which columns to join by - if set to NULL a natural join will be done, using all variables with common names across .fcst and .join. The default is to join using all common columns in .fcst and .join excluding lat, lon and elev. This is because they may be stored to different levels of precision and the join will thus fail. |
force_join |
Set to TRUE to force the join to happen even if the units in .fcst and .join are not compatible. |
keep_x, keep_y |
Where duplicate column names are found, but not used in
the join, these arguments are used to indicate whether the duplicate
columns from .fcst ( |
... |
Other arguments for join. |
This function would typically be used to add a column of observations to the forecast data. If units columns are found in the data, the function will check if the units are the same for both .fcst and .join. If they are not, an error will be thrown and the join will not be done. This behaviour can be overridden with the force_join argument.
The input forecast data frame with column(s) added from .join
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.