0

I'm new to R and I'm struggling with some datasets....

I have two datasets - dataset A includes x(depth) and y(concentration) and dataset B includes x(depth) and y(age).

In dataset A, my depth is evenly spread out, such as

Depth(cm) Concentration(ppm)

    1    100
    2    110
    3    112
    4    95
    5    29
    6    40
    7    20
    8    114
    9    92
    10   93

and so on.

But in my dataset B, my depth is spaced out irregularly, such as

Depth (cm) Age(year)

    1    10
    3    19
    7    32

In this case, would it be possible to extract columns with depths of dataset B (at 1, 3, 7cm) from dataset A, so that I'll get something like below as a result?

Depth (cm) Concentration (ppm)

    1    100
    3    112
    7    20
Jaap
  • 77,147
  • 31
  • 174
  • 185
Jen
  • 175
  • 10

0 Answers0