Re: [R] Create a new variable and concatenation inside a "for" loop

2016-05-02 Thread Raubertas, Richard
What nonsense. There is a group of finger-waggers on this list who jump on every poster who uses the name of an R function as a variable name. R is perfectly capable of distinguishing the two, so if 'c' (or 'data' or 'df', etc.) is the natural name for a variable then go ahead and use it.

Re: [R] lsqlin in R package pracma

2015-08-27 Thread Raubertas, Richard
Is it really that complicated? This looks like an ordinary quadratic programming problem, and 'solve.QP' from the 'quadprog' package seems to solve it without user-specified starting values: library(quadprog) Dmat - t(C) %*% C dvec - (t(C) %*% d) Amat - -1 * t(A) bvec - -1 * b rslt -

Re: [R] [R-pkgs] New package list for analyzing list surveyexperiments

2010-07-13 Thread Raubertas, Richard
I agree that 'list' is a terrible package name, but only secondarily because it is a data type. The primary problem is that it is so generic as to be almost totally uninformative about what the package does. For some reason package writers seem to prefer maximally uninformative names for

Re: [R] Cforest and Random Forest memory use

2010-06-18 Thread Raubertas, Richard
-Original Message- From: Max Kuhn [mailto:mxk...@gmail.com] Sent: Friday, June 18, 2010 1:35 PM To: Bert Gunter Cc: Raubertas, Richard; Matthew OKane; r-help@r-project.org Subject: Re: [R] Cforest and Random Forest memory use Rich's calculations are correct, but from a practical standpoint I

Re: [R] Cforest and Random Forest memory use

2010-06-17 Thread Raubertas, Richard
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Max Kuhn Sent: Monday, June 14, 2010 10:19 AM To: Matthew OKane Cc: r-help@r-project.org Subject: Re: [R] Cforest and Random Forest memory use The first thing that I would

Re: [R] Extending a vector to length n

2009-04-16 Thread Raubertas, Richard
The following approach works for both of your examples: xx - rep(x, length.out=n) xx[m:n] - NA Thus: n - 2 aa - rep(a, length.out=n) aa[(length(a)+1):n] - NA aa [1] 2008-01-01 NA bb - rep(b, length.out=n) bb[(length(b)+1):n] - NA bb [1] aNA Levels: a R. Raubertas Merck

Re: [R] Semantics of sequences in R

2009-02-23 Thread Raubertas, Richard
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Murdoch Sent: Sunday, February 22, 2009 4:13 PM I think this was posted to the wrong list, so my followup is going to R-devel. On 22/02/2009 3:42 PM, Stavros Macrakis wrote: Inspired by