[R] dyn.load(now = FALSE) not actually lazy?

2023-01-31 Thread Michael Milton
On Linux, if I have a .so file that has a dependency on another .so, and I `dyn.load(now=FALSE)` the first one, R seems to try to resolve the symbols immediately, causing the load to fail. For example, I have `libtorch` installed on my HPC. Note that it links to various libs such as `libcudart.so`

Re: [R] Bug in internal 'tar' implementation?

2023-01-31 Thread Duncan Murdoch
Or directly to bugs.r-project.org . It definitely looks to me like a bug. Instructions for bug reports are here: https://www.r-project.org/bugs.html . David might need to set up a Bugzilla account according to those instructions before reporting. Duncan Murdoch On 31/01/2023 1:40 p.m., Ber

Re: [R] Bug in internal 'tar' implementation?

2023-01-31 Thread Bert Gunter
This post should probably go to R-devel rather than here. -- Bert On Tue, Jan 31, 2023 at 9:47 AM David Engster wrote: > I think I found a bug in the internal implementation of 'tar', but > before bothering the R maintainers, I was advised to ask here to make > sure I'm not missing something. >

Re: [R] package sare not loading and/or installing

2023-01-31 Thread Ivan Krylov
On Tue, 31 Jan 2023 13:12:46 + Phil Smith via R-help wrote: > Some of these install with no problem. However, most of them give an > error messages that looks like: > > Warning in install.packages : > installation of package ‘curl’ had non-zero exit status I'm using my psychic debugging

[R] package sare not loading and/or installing

2023-01-31 Thread Phil Smith via R-help
Hello R-Help People! I had to reinstall my operating system... and reinstall R. I am having trouble with reinstalling packages: install.packages(c( "curl")) install.packages(c( "quantmod")) install.packages(c( "TTR")) install.packages(c( "xts")) install.packages(c( "zoo")) install.packages(c( "t

[R] Bug in internal 'tar' implementation?

2023-01-31 Thread David Engster
I think I found a bug in the internal implementation of 'tar', but before bothering the R maintainers, I was advised to ask here to make sure I'm not missing something. Fortunately, it can be very easily reproduced on a Linux system. In an empty temporary directory, execute the following code: ca

Re: [R] question

2023-01-31 Thread Carolyn J Miller via R-help
Very true, Carolyn J. Miller M.S. Student, Ecology SUNY-ESF, Environmental Biology From: Bert Gunter Sent: Tuesday, January 31, 2023 10:46 AM To: Carolyn J Miller Cc: Boris Steipe ; r-help@r-project.org Subject: Re: [R] question "The combination of some data

Re: [R] question

2023-01-31 Thread Bert Gunter
"The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data." John Tukey Cheers, Bert On Tue, Jan 31, 2023 at 7:44 AM Carolyn J Miller via R-help < r-help@r-project.org> wrote: > Hi Boris, > > It's hair cor

Re: [R] question

2023-01-31 Thread Carolyn J Miller via R-help
Hi Boris, It's hair cortisol so it shouldn't have an effect. My study species are ungulates, which retain their coat through the winter into the spring shedding out around April/May so in theory these two sampling periods should provide the same results as hair cort provides an average of accum

Re: [R] question

2023-01-31 Thread Boris Steipe
Perhaps, rather than looking to compress your observations into a single number, you could simply visualize what you observed: use a boxplot to show the March and December observations, and overlay the three animals that were recaptured as individual points, connected with a line. Feel free to

Re: [R] question

2023-01-31 Thread Carolyn J Miller via R-help
Thank you! Carolyn J. Miller M.S. Student, Ecology SUNY-ESF, Environmental Biology From: Ebert,Timothy Aaron Sent: Tuesday, January 31, 2023 9:50 AM To: Carolyn J Miller ; PIKAL Petr ; r-help@r-project.org Subject: RE: question As indicated here: https://ww

Re: [R] question

2023-01-31 Thread Ebert,Timothy Aaron
As indicated here: https://www.geeksforgeeks.org/compute-the-correlation-coefficient-value-between-two-vectors-in-r-programming-cor-function/ The cor() function needs two vectors. The only way that works is if you are looking at the correlation between "Month" and "Cort." If you interested in the

Re: [R] question

2023-01-31 Thread Carolyn J Miller via R-help
Hi Timothy, Here's some example data that might help to demonstrate how the data currently looks. AnimalIDMonth Cort 1 12 0.00591 1 3 0.00583 2 3 0.005722 3 3 0.005838 4 3 0.005873 4 12 0.0059 5 3 0.00572

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 On

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 at

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

2023-01-31 Thread konstantinos christodoulou
Hi Andrew, I applied your command in another dataset with known derivative values and it gave me very satisfactory results! Therefore, I will use it on my dataset. Thank you so much! Kostas On Tue, Jan 31, 2023 at 12:22 PM Andrew Robinson wrote: > Try something like > > with(df, predict(smoo

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

2023-01-31 Thread Andrew Robinson via R-help
Try something like with(df, predict(smooth.spline(x = altitude, y = atm_values), deriv = 1)) Cheers, Andrew -- Andrew Robinson Chief Executive Officer, CEBRA and Professor of Biosecurity, School/s of BioSciences and Mathematics & Statistics University of Melbourne, VIC 3010 Australia Tel: (+61)

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. pracma::fornberg

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: r-hel

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

2023-01-31 Thread konstantinos christodoulou
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,

[R] [R-pkgs] New package - LGDtoolkit

2023-01-31 Thread Andrija Djurovic
Dear all, my new R package LGDtoolkit is now on CRAN. The goal of this package is to cover the most common steps in Loss Given Default (LGD) rating model development. The main procedures available are those that refer to bivariate and multivariate analysis. In particular two statistical methods f