Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201977

Merge two data frames based on range value in R

$
0
0

Would it be possible to have a function that would consider having a range in the "by" argument of a joint?

Example:

#Table 1
  A B C D
1 a 1 10 15
2 a 11 1000 12.5
3 b 1 5 2
4 b 6 1000 1

#Table 2
  A B
1 a 53
2 b 3 

Joint Table:

  A B 1.D
1 a 53 12.5
2 b 3 2

Viewing all articles
Browse latest Browse all 201977

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>