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.
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 -
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
-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
-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
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
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
7 matches
Mail list logo