search for: cooch

Displaying 20 results from an estimated 51 matches for "cooch".

Did you mean: coach
2017 Sep 22
1
update numeric values of list with new values...
...t)) test.new $a [1] 4 $b [1] 5 $c [1] 6 Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Sep 22, 2017 at 7:51 AM, Evan Cooch <evan.cooch at gmail.com> wrote: > Solved it: > > test <- list(a=1,b=2,c=3) > new <- c(4,5,6) > > hold <- as.list(new) > updated_test <- replace(test,c(1:3),hold) > > $a > [1] 4 > > $b > [1] 5 > > $c > [1] 6 > > > > mean...
2020 Oct 12
1
Problems with large loops in CentOS
...nterSeattle, WA and Fairbanks, AK, USA(907) 347-5552jay.verhoef at noaa.gov <jay.verhoef at noaa.gov> http://sites.google.com/site/jayverhoef/ <http://sites.google.com/site/jayverhoef/>************************************************************** On Sun, Oct 11, 2020 at 9:56 AM Evan Cooch <evan.cooch at gmail.com> wrote: > Hi Jay -- > > Works fine for me under CentOS 7 -- 16 GB RAM. The code doesn't seem to > output anything, so not sure if its running 'correctly'. But, its > running without error. > > On 12/11/2019 2:28 PM, Jay Ver Hoef - NOA...
2024 Feb 27
4
converting MATLAB -> R | element-wise operation
So, trying to convert a very long, somewhat technical bit of lin alg MATLAB code to R. Most of it working, but raninto a stumbling block that is probaably simple enough for someone to explain. Basically, trying to 'line up' MATLAB results from an element-wise division of a matrix by a vector with R output. Here is a simplified version of the MATLAB code I'm translating: NN = [1,
2020 Oct 31
3
R 4.0 for CentOS 7
...cannot be distributed in EPEL, because we're allowed to build against a devtoolset, but not depend on it, so the distribution would be broken (you could not install packages unless you know that you need a specific devtoolset, so you install and activate it). On Sat, 31 Oct 2020 at 02:05, Evan Cooch <evan.cooch at gmail.com> wrote: > > Really? If I?aki says it can't be done (even using devtools, which I've > tried), then you need to move on. > > On 10/30/2020 8:57 PM, H wrote: > > On 10/30/2020 05:02 AM, I?aki Ucar wrote: > >> Please, do not crosspos...
2017 Jun 21
4
selecting dataframe columns based on substring of col name(s)
Suppose I have the following sort of dataframe, where each column name has a common structure: prefix, followed by a number (for this example, col1, col2, col3 and col4): d = data.frame( col1=runif(10), col2=runif(10), col3=runif(10),col4=runif(10)) What I haven't been able to suss out is how to efficiently 'extract/manipulate/play with' columns from the data frame, making use
2017 Sep 22
0
update numeric values of list with new values...
Solved it: test <- list(a=1,b=2,c=3) new <- c(4,5,6) hold <- as.list(new) updated_test <- replace(test,c(1:3),hold) $a [1] 4 $b [1] 5 $c [1] 6 mean.parms <- as.list(mean.parms) mm.parms <- replace(far.parms,c(1:length(far.parms)),mean.parms) On 9/22/2017 10:34 AM, Evan Cooch wrote: > Suppose I have the following: > > test <- list(a=1,b=2,c=3) > > I also have a vector (or list, or something else...) with new numbers > > new <- c(4,5,6) > > What I'm trying to figure out is how to take the list, and update the > numbers from {1,2,3...
2006 Sep 18
1
symbolic matrix elements...
...ion than if I code it explicitly as an expression. I'm *guessing* it has to do with the tilde operator not assigning the formula to anything, but I'm not sure. Suggestions? Pointers to the obvious? Thanks! -- ---------------------------------------------------------------------- Evan Cooch e.mail: evan.cooch at cornell.edu Department of Natural Resources voice: 607-255-1368 Fernow Hall - Cornell University FAX: 607-255-0349 Ithaca, NY 14853 http://canuck.dnr.cornell.edu -------------------------------------------------------------...
2017 Sep 22
2
update numeric values of list with new values...
Suppose I have the following: test <- list(a=1,b=2,c=3) I also have a vector (or list, or something else...) with new numbers new <- c(4,5,6) What I'm trying to figure out is how to take the list, and update the numbers from {1,2,3} to {4,5,6} So, in the end,I want the 'update' test list to look like (a=4,a=5,a=6) I tried a bunch of obvious things I know about
2017 Sep 28
2
building random matrices from vectors of random parameters
Sure -- thanks -- only took me 3-4 attempts to get aperm to work (as opposed to really thinking hard about how it works ;-) On 9/28/2017 11:55 AM, Duncan Murdoch wrote: > On 28/09/2017 9:10 AM, Evan Cooch wrote: >> Thanks for both the mapply and array approaches! However, although >> intended to generate the same result, they don't: >> >> # mapply approach >> >> n = 3 >> sa <- rnorm(n,0.8,0.1) >> so <- rnorm(n,0.5,0.1) >> m <- rnorm...
2024 Feb 27
2
[External] converting MATLAB -> R | element-wise operation
> t(t(NN)/lambda) [,1] [,2] [,3] [1,] 0.5 0.6666667 0.75 [2,] 2.0 1.6666667 1.50 > R matrices are column-based. MATLAB matrices are row-based. > On Feb 27, 2024, at 14:54, Evan Cooch <evan.cooch at gmail.com> wrote: > > So, trying to convert a very long, somewhat technical bit of lin alg > MATLAB code to R. Most of it working, but raninto a stumbling block that > is probaably simple enough for someone to explain. > > Basically, trying to 'line up'...
2017 Jun 21
0
selecting dataframe columns based on substring of col name(s)
> On Jun 21, 2017, at 9:11 AM, Evan Cooch <evan.cooch at gmail.com> wrote: > > Suppose I have the following sort of dataframe, where each column name has a common structure: prefix, followed by a number (for this example, col1, col2, col3 and col4): > > d = data.frame( col1=runif(10), col2=runif(10), col3=runif(10),col4...
2017 Sep 28
0
building random matrices from vectors of random parameters
The use of aperm is unnecessary if you call array() properly. ms <- array(c(rep(0, 5),so,sa*m,sa), c(5, 2, 2)) -- Sent from my phone. Please excuse my brevity. On September 28, 2017 9:10:26 AM PDT, Evan Cooch <evan.cooch at gmail.com> wrote: >Sure -- thanks -- only took me 3-4 attempts to get aperm to work (as >opposed to really thinking hard about how it works ;-) > >On 9/28/2017 11:55 AM, Duncan Murdoch wrote: >> On 28/09/2017 9:10 AM, Evan Cooch wrote: >>> Thanks for...
2006 Apr 01
4
-newbie | RODBC import query
Greetings - After 20+ years of using SAS, for a variety of reasons, I'm using [R] for a bunch of things - while I'm getting a pretty good a handling [R] for script programming, and statistical analysis, I'm struggling with 'pulling data into [R]'. For reasons beyond my control, a number of the files I get sent to 'work with' are in Dbase format (*.dbf). For
2016 Jun 06
2
problems compiling packages | 3.3.0 | Linux
...other things I work with. Hence my interest in 3.30. I'll definitely try the latest build later this week. p.s. I should probably upgrade to RH 7 - but thanks for not beating me over the head with the obvious. ;-) On 6/6/2016 9:55 AM, Tom Callaway wrote: > On 06/04/2016 12:10 PM, Evan Cooch wrote: >> Updated my R install on my GNU/Linux boxes (running CentOS 6.8) from >> 3.2.x -> 3.3.0, using latest from epel (i.e., not compiling from >> source), and while said upgrade seemed to go fine, am now (post-upgrade) >> having all sorts of problems with getting some...
2024 Feb 27
2
converting MATLAB -> R | element-wise operation
...an be transposed back as in t( t( NN ) / lambda ): 0.50 0.67 0.75 2.00 1.67 1.50 but that requires a lot of moving elements around while sweep does not. Operators are not necessarily "better" than named functions... they just look different. On February 27, 2024 11:54:26 AM PST, Evan Cooch <evan.cooch at gmail.com> wrote: >So, trying to convert a very long, somewhat technical bit of lin alg >MATLAB code to R. Most of it working, but raninto a stumbling block that >is probaably simple enough for someone to explain. > >Basically, trying to 'line up' MATLA...
2017 Sep 28
3
building random matrices from vectors of random parameters
Suppose I have interest in a matrix with the following symbolic structure (specified by 3 parameters: sa, so, m): matrix(c(0,sa*m,so,sa),2,2,byrow=T) What I can't figure out is how to construct a series of matrices, where the elements/parameters are rnorm values. I'd like to construct separate matrices, with each matrix in the series using the 'next random parameter value'.
2020 Oct 31
0
R 4.0 for CentOS 7
...EPEL, because we're allowed to build against a > devtoolset, but not depend on it, so the distribution would be broken > (you could not install packages unless you know that you need a > specific devtoolset, so you install and activate it). > > On Sat, 31 Oct 2020 at 02:05, Evan Cooch <evan.cooch at gmail.com> wrote: >> Really? If I?aki says it can't be done (even using devtools, which I've >> tried), then you need to move on. >> >> On 10/30/2020 8:57 PM, H wrote: >>> On 10/30/2020 05:02 AM, I?aki Ucar wrote: >>>> Please...
2023 May 25
3
extract parts of a list before symbol
Suppose I have the following list: test <- list(a=3,b=5,c=11) I'm trying to figure out how to extract the characters to the left of the equal sign (i.e., I want to extract a list of the variable names, a, b and c. I've tried the permutations I know of involving sub - things like sub("\\=.*", "", test), but no matter what I try, sub keeps returning (3, 5, 11).
2006 Jul 24
1
R and ACML
...t config.log, Following line looks suspicious: /usr/bin/ld: cannot find -lacml 7. one final attempt: ./configure --with-blas="-L/opt/acml3.5.0/gnu64/lib -lacml" No change - readline is still the only -- ---------------------------------------------------------------------- Evan Cooch e.mail: evan.cooch at cornell.edu Department of Natural Resources voice: 607-255-1368 Fernow Hall - Cornell University FAX: 607-255-0349 Ithaca, NY 14853 http://canuck.dnr.cornell.edu -------------------------------------------------------------...
2018 May 25
1
options other than regex
Numbers -- thanks. Another clever trick. On 5/25/2018 11:54 AM, Greg Minshall wrote: > Evan, > > are you really looking at numbers, or just at character strings (that, > in your case, happen to be numbers)? if just characters, this rather > odd combination of strsplit() and Reduce() might do the trick: > ---- >> x <- '10110111' >> print(x) > [1]