Re: [R] Issue with gc() on Ubuntu 20.04

2023-08-27 Thread John Logsdon
On 27-08-2023 21:02, Ivan Krylov wrote: On Sun, 27 Aug 2023 19:54:23 +0100 John Logsdon wrote: Not so although it did lower the gc() time to 95.84%. This was on a 16 core Threadripper 1950X box so I was intending to use library parallel but I tried it on my lowly windows box that is years

[R] Issue with gc() on Ubuntu 20.04

2023-08-27 Thread John Logsdon
aged to do this yet. Can anyone advise me? And why is the Linux version so much worse than Windows? TIA -- John Logsdon Quantex Research Ltd m:+447717758675/h:+441614454951 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://sta

Re: [R] apply and cousins

2016-06-09 Thread John Logsdon
mps<-clump_adj_int(bar) > # write another function to sum the values > sum_subsets<-function(indices,vector) > return(sum(vector[indices],na.rm=TRUE)) > # now "apply" the function to the list of indices > lapply(index_clumps,sum_subsets,foo) > > Jim > > > O

[R] apply and cousins

2016-06-08 Thread John Logsdon
that will take ages. Is there any vectorised apply-like solution to this? Or does apply etc only operate on each row at a time, independently of other rows? Best wishes John John Logsdon Quantex Research Ltd +44 161 445 4951/+44 7717758675 __ R-h

[R] Vectorised operations

2016-05-18 Thread John Logsdon
lists which may well be an unnecessary overhead. I have been trying other approaches using apply() methods but either it can't be done using them or I can't get my head round them! Any ideas? Best wishes John John Logsdon Quantex Research Ltd +44 161 445 4951

Re: [R] R project and the TPP

2016-02-05 Thread John Logsdon
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >