search for: nfact

Displaying 6 results from an estimated 6 matches for "nfact".

Did you mean: fact
2007 Dec 19
1
strange timings in convolve(x,y,type="open")
Dear R-ophiles, I've found something very odd when I apply convolve to ever larger vectors. Here is an example below with vectors ranging from 2^11 to 2^17. There is a funny bump up at 2^12. Then it gets very slow at 2^16. > for( i in 11:20 )print( system.time(convolve(1:2^i,1:2^i,type="o"))) user system elapsed 0.002 0.000 0.002 user system elapsed 0.373
2000 Mar 31
1
Cutting vectors
I have one factor with say five levels (fact) of different size and a corresponding variable (var). I randomly generate five new levels (nfact ex. 2,2,1,5,4). What I would like to do is to extract the corresponding variable values into a new variable (nvar). I did try the following, why doesn't it work? nvar<-var[fact==nfact[ ]] Patrik Waldmann -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-hel...
2002 Jun 12
4
table problems
dear helplist, my student has fifty trees, numbered one to fifty, and a vector recording which tree a certain possum slept in on 12 nights. R> c [1] 3 14 17 22 26 26 17 40 43 25 46 46 R> Thus it slept in tree #3 on Monday, then tree #14 on Tues, and so on. I wish to test the null hypothesis that the animal chooses trees randomly; try R> table(c) c 3 14 17 22 25 26 40 43 46 1 1
2015 Oct 14
5
RFC: Introducing an LLVM Community Code of Conduct
On Wed, Oct 14, 2015 at 2:02 AM Bill Kelly via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Tanya Lattner wrote: > >> On Oct 13, 2015, at 10:23 AM, Bill Kelly via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> > >> Renato Golin via llvm-dev wrote: > >>> On 13 October 2015 at 17:16, Kuperstein, Michael M via llvm-dev >
2016 Nov 26
3
ifelse() woes ... can we agree on a ifelse2() ?
...or example, in chkIfelse(ifelseR) . Maybe place it inside try(...). * If 'lt' is a "POSIXlt" object, (lt-100) is a "POSIXct" object. So, FUN(c(TRUE, FALSE, NA, TRUE), lt, lt-100) is an example of mixed class. * The part of function 'chkIfelse' in for(i in seq_len(nFact)) uses 'NA.' function argument. That makes error when 'chkIfelse' is applied to function without fourth argument. The part should be wrapped in if(has.4th) . * Function 'ifelseJH' has fourth argument, but the argument is not for value if NA. So, instead of chkIfelse(ifelseJH...
2016 Nov 28
0
ifelse() woes ... can we agree on a ifelse2() ?
...;lt' is a "POSIXlt" object, (lt-100) is a "POSIXct" object. > So, > FUN(c(TRUE, FALSE, NA, TRUE), lt, lt-100) > is an example of mixed class. good; thank you for the hint. > * The part of function 'chkIfelse' in > for(i in seq_len(nFact)) > uses 'NA.' function argument. That makes error when 'chkIfelse' is applied to function without fourth argument. > The part should be wrapped in > if(has.4th) . yes of course > * Function 'ifelseJH' has fourth argument, but the argument is not...