Re: [R] How to calculate the derivatives at each data point?

2023-01-31 Thread konstantinos christodoulou
Thank you Petr! On Tue, Jan 31, 2023 at 11:58 AM PIKAL Petr wrote: > 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

Re: [R] How to calculate the derivatives at each data point?

2023-01-31 Thread konstantinos christodoulou
Hi Ivan! Thank you for your valuable insights! I look forward to learning more about numerical differentiation and about this subject. The pracma package and the fornberg() function is impressive. I got some really good approximations on my derivatives. Thank you! Kostas On Tue, Jan 31, 2023

Re: [R] How to calculate the derivatives at each data point?

2023-01-31 Thread Ivan Krylov
В Tue, 31 Jan 2023 11:16:21 +0200 konstantinos christodoulou пишет: > How can I find the derivatives of the atmospheric measurements at each > altitude? Welcome to the world of finite difference methods! If you can find a good textbook on them, it may be a good idea to skim it.

Re: [R] How to calculate the derivatives at each data point?

2023-01-31 Thread PIKAL Petr
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 On Behalf Of konstantinos > christodoulou > Sent: Tuesday, January 31, 2023 10:16 AM > To: