Description Usage Arguments Value Examples
logical_join provides booliean variable appended onto data1, indicating which rows have matching observations in data2
1 | logical_join(data1, data2, by = NULL)
|
data1 |
data.frame to join as reference dataset |
data2 |
data.frame to look for potential matches |
by |
variable or variables to use for joining data1 and data2 |
data1 is returned with a boolian variable 'inData2' appended.
1 2 3 4 5 | #df1 <- data.frame(id = 1:10, x = rnorm(10))
#df2 <- data.frame(id = sample(c(1:10), 5, replace = F), y = rnorm(10))
#logical_join(df1, df2)
#df1 %>% logical_join(df2)
#df1 %>% logical_join(df2, by = 'id')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.