Hi,
I have a dataset looking like this:
Date ID x_1 x_2 x_3
However, there are some missing values.
while x_1 has a value x_2 and x_3 have for the same ID no values (i. e. ".") (but this is not alway the case, sometimes they have, sometimes they don't)
What I want is the mean over x_1, x_2 and x_3 within ID. How can I achieve this?
I have a dataset looking like this:
Date ID x_1 x_2 x_3
However, there are some missing values.
while x_1 has a value x_2 and x_3 have for the same ID no values (i. e. ".") (but this is not alway the case, sometimes they have, sometimes they don't)
What I want is the mean over x_1, x_2 and x_3 within ID. How can I achieve this?
Comment