Displaying 2 results from an estimated 2 matches for "enaough".
Did you mean:
anough
2023 Jan 31
1
How to calculate the derivatives at each data point?
Hi Konstantinos
Not exactly derivative but
> diff(df[,2])
[1] -0.01 -0.01 -0.01 -0.01 0.00 0.01 -0.02 -0.03 -0.02
May be enaough for you.
Cheers
Petr
>
> -----Original Message-----
> From: R-help <r-help-bounces at r-project.org> On Behalf Of konstantinos
> christodoulou
> Sent: Tuesday, January 31, 2023 10:16 AM
> To: r-help mailing list <r-help at r-project.org>
> Subject: [R] How to calc...
2023 Jan 31
3
How to calculate the derivatives at each data point?
Hi everyone,
I have a vector with atmospheric measurements (x-axis) that is
obtained/calculated at different altitudes (y-axis). The altitude is
uniformly distributed every 7 meters.
For example my dataframe is:
df <- dataframe(
*altitude* = c(1005, 1012, 1019, 1026, 1033, 1040, 1047, 1054, 1061, 1068),
*atm_values* = c(1.41, 1.40, 1.39, 1.38, 1.37, 1.37, 1.38, 1.36, 1.33, 1.31)