How do I transform each row in a data frame with an arbitrary function?
I have a data frame in which each row contains values for specific ages (0, 6, 15, 24, 36 months). I can interpolate values for one row to other ages using approx
. How can I apply this across all rows? I have tried various things with rowwise()
, but they don’t work.
How do I transform each row in a data frame with an arbitrary function?
I have a data frame in which each row contains values for specific ages (0, 6, 15, 24, 36 months). I can interpolate values for one row to other ages using approx
. How can I apply this across all rows? I have tried various things with rowwise()
, but they don’t work.
How do I transform each row in a data frame with an arbitrary function?
I have a data frame in which each row contains values for specific ages (0, 6, 15, 24, 36 months). I can interpolate values for one row to other ages using approx
. How can I apply this across all rows? I have tried various things with rowwise()
, but they don’t work.