Displaying 6 results from an estimated 6 matches for "dreiss".
Did you mean:
reiss
2007 Feb 27
1
Function to do multiple named lookups faster?
Hi,
I apologize if this topic has been discussed - I could not figure out
a good search phrase for this question.
I have a named vector x, with multiple (duplicate) names, and I would
like to obtain a (shorter) vector with non-duplicate names in which
the values are the means of the values of the duplicated indexes in x.
My best (fastest) solution to this was this code:
nms <- names( x )
2010 May 21
1
escape character OK in R environment, fails in R CMD CHECK
Hi,
I am trying to check a package via R CMD CHECK and it is failing with
Error: '\s' is an unrecognized escape in character string starting "\s"
The culprit looks something like this:
gsub('\\s\\(.*\\)',"","this is a (test, man) dude")
which is correctly escaped with the "\\"'s -- but it seems that R CMD
CHECK is pre-escaping the
2009 Mar 23
3
read in large data file (tsv) with inline filter?
I have a very large tab-delimited file, too big to store in memory via
readLines() or read.delim(). Turns out I only need a few hundred of those
lines to be read in. If it were not so large, I could read the entire file
in and "grep" the lines I need. For such a large file; many calls to
read.delim() with incrementing "skip" and "nrows" parameters, followed by
grep()
2007 Jan 06
0
has anyone implemented LARS with the "positive lasso"?
Hi,
I am interested in a modification to LARS that allows for positive-only
constraints in the variables (with details about how to implement this as
described in section 3.4 of the Efron et al (2003) LARS paper).
Before I dive into the "lars" package code myself, I was wondering if anyone
knew of a version where this is available, or if another package that I have
not found can do
2007 Jul 03
1
bug in closing gzfile-opened connections?
Hi,
I am making multiple calls to gzfile() via read.table(), e.g.
> x <- read.table( gzfile( "xxx.gz" ) )
After i do this many times (I haven't counted, but probably between 50 and
100 times) I get the error message:
Error in open.connection(file, "r") : unable to open connection
In addition: Warning message:
cannot open compressed file 'xxx.gz'
however, I
2006 Sep 04
2
Fitting generalized additive models with constraints?
Hello,
I am trying to fit a GAM for a simple model, a simple model, y ~ s(x0) +
s(x1) ; with a constraint that the fitted smooth functions s(x0) and s(x1)
have to each always be >0.
>From the library documentation and a search of the R-site and R-help
archives I have not been able to decipher whether the following is possible
using this, or other GAM libraries, or whether I will have to try