View source: R/left_join_range.R
left_join_range | R Documentation |
left_join_range
will test if a variable in table x
is within a
range of two variables in table y
and join the other variables if
TRUE
.
left_join_range(x, y, x_test, y_min, y_max, keep = FALSE)
x , y |
Data frames to join. |
x_test |
Variable name in |
y_min , y_max |
Variables in |
keep |
Should the |
Stuart K. Grange
## Not run:
# Code urban area population into defined groups
data_join <- left_join_range(
data_urban,
data_urban_class,
"population",
"size_min",
"size_max"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.