Quantcast
Channel: R - Match a value from one data frame with multiple values from another - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by cderv for R - Match a value from one data frame with multiple...

To match a value from one data frame with multiple values from another, you could loop through the first data.frame and get the indice in the second for each value. d1 <- data.frame(x =...

View Article



R - Match a value from one data frame with multiple values from another

For example, say I have the two data frames...d1 <- data.frame(c(a,b,c,d,e,f))d2 <- data.frame(c(a,a,a,b,b,d,d,d,d,d,e,e,f))And I want to search 'a' from d1 in d2 and reveal the index of every...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images