Displaying 20 results from an estimated 3000 matches similar to: "eval(parse(text vs. get when accessing a function"
2006 Jan 04
2
Looking for packages to do Feature Selection and Classification
Hi All,
Sorry if this is a repost (a quick browse didn't give me the answer).
I wonder if there are packages that can do the feature selection and
classification at the same time. For instance, I am using SVM to classify my
samples, but it's easy to get overfitted if using all of the features. Thus,
it is necessary to select "good" features to build an optimum hyperplane
(?).
2005 May 05
1
building from source after installing binary package
Dear All,
I've got into the habit of installing R from the precompiled Debian binaries, including many of the packages from the r-cran-* Debian packages, and later building from source (e.g., to link against Goto's BLAS, or to build patched versions, etc). I install the newly built R to the very same place (/usr/lib/R). This allows me to build and update R when I wish, AND provides the
2007 Jan 30
4
Speed of for loops
Hi Everyone,
I have a question about for loops. If you have something like:
f <- function(x) {
y <- rep(NA,10);
for( i in 1:10 ) {
if ( i > 3 ) {
if ( is.na(y[i-3]) == FALSE ) {
# some calculation F which depends on one or more of the previously
generated values in the series
y[i] = y[i-1]+x[i];
} else {
y[i] <- x[i];
}
}
}
y
}
e.g.
>
2007 Jan 30
4
Speed of for loops
Hi Everyone,
I have a question about for loops. If you have something like:
f <- function(x) {
y <- rep(NA,10);
for( i in 1:10 ) {
if ( i > 3 ) {
if ( is.na(y[i-3]) == FALSE ) {
# some calculation F which depends on one or more of the previously
generated values in the series
y[i] = y[i-1]+x[i];
} else {
y[i] <- x[i];
}
}
}
y
}
e.g.
>
2006 Feb 16
1
Interaction between R and Perl
Hello!
I'm calling R from Perl with Statistics-R perl module for a microarray
analysis integrated web tool.
I have some questions for a multi-users utilisation:
- Can I change the directory where R is running in order to have a directory
per user? Then no problem of erasing R data of an other user.
- If it's not possible, can I limite the number of users at the same time? I
see
2006 Jul 05
2
Colinearity Function in R
Is there a colinearty function implemented in R? I
have tried help.search("colinearity") and
help.search("collinearity") and have searched for
"colinearity" and "collinearity" on
http://www.rpad.org/Rpad/Rpad-refcard.pdf but with no
success.
Many thanks in advance,
Peter Lauren.
2006 Aug 11
1
rpvm/snow packages on a cluster with dual-processor machines
Hi,
does anybody know how to use the dual processors in the machines of a cluster? I am using R with rpvm and snow packages. I usually start pvm daemon and add host machines first, and then run R to start my computing work. But I find that only one processor in each machine is used in this way and the other one always stays idle. Is there any simple way to tell pvm to use the two processors at
2008 Feb 28
2
compress data on read, decompress on write
Dear All,
I'd like to be able to have R store (in a list component) a compressed
data set, and then write it out uncompressed. gzcon and gzfile work in
exactly the opposite direction. What would be a good way to handle
this?
Details:
----------
We have a package that uses C; part of the C output is a large sparse
matrix. This is never manipulated directly by R, but always by the C
code.
2006 Oct 25
1
Cross-compilation
Hi everyone,
I am trying to cross-compile a package I wrote using the Yan and Rossini
tutorial "Building Microsoft Windows versions of R and R packages using
Intel Linux". I have got reasonably far with this but when doing the
linking using the line:
i586-mingw32-g++ -shared -s -o mylibrary.dll mylibrary.def mylibrary.o
mylibrary_res.o
2008 Feb 29
1
using zlib (was compress data on read, decompress on write)
Dear All,
I think I am confused about how I'd be able to use zlib starting with
R 2.7.0. I just downloaded the latest development version, built it,
etc, but I am not able to find the zlib.h that, I believe, R should
place somewhere under "where/you/want/R/to/go" (from
--prefix=/where/you/want/R/to/go). There seem to be entry points for
zlib in the binary (e.g., grep -r gzopen ./
2006 Jul 05
2
Editors which have strong/solid support for SWeave?
Greetings!
I have a few colleagues who like the idea of Sweave, but have failed
to become enlightened monks of the One True Editor
(http://www.dina.dk/~abraham/religion/)
Are there any other Microsoft-centric editors or IDEs which have solid
support for writing SWeave documents (dual R / LaTeX enhancements
similar to ESS's support)? Has anyone tried the folding editors which
support Noweb?
2016 Mar 22
1
bzlib, pcre and zlib still needed in rules?
Dear All,
I just
apt-get source r-base-core
and noticed that file "rules" under ./r-base-3.2.4-revised/debian
contains (lines 277 to 279)
--with-system-bzlib \
--with-system-pcre \
--with-system-zlib \
I wonder if these are still necessary and, in fact, when building R alpha
(specifically, R-alpha_2016-03-21_r70361.tar.gz) I get a warning saying
that those options are not
2004 Sep 21
3
can't understand "R"
hi. i really need help using this program. computer language is a foreign
language to me, and thus, i cannot make heads nor tails of the user manuals
from the website. i need to locate step-by-step examples of simple
problems such as "graph f(x)+g(x) and f(g(x)) for the domain 0<x<2" and
"graph 2H(x), H(x)+1, H(x+1)" i do know how to define the functions, but
2005 Apr 19
2
cross validation and parameter determination
Hi all,
In Tibshirani's PNAS paper about nearest shrunken
centroid analysis of microarrays (PNAS vol 99:6567),
they used cross validation to choose the amount of
shrinkage used in the model, and then test the
performance of the model with the cross-validated
shrinkage in separate independent testing set. If I
don't have the luxury of having independent testing
set, can I just use the
2007 Jan 19
8
kate editor for R
Like kile for LaTeX, Linux/KDE's kate editor is an excellent editor for
R, with easy code submission to a running R process. Syntax
highlighting is good. I have not been able to figure out two things:
- how to automatically reformat a line or region of text using good
indentation rules (Emacs/ESS make this so easy by just hitting Tab while
the cursor is in a line, or highlighting a
2015 Dec 30
2
URW Fonts Description in Installation and Administration Manual
On Wed, 30-12-2015, at 12:44, Dirk Eddelbuettel <edd at debian.org> wrote:
> On 30 December 2015 at 05:00, Dario Strbenac wrote:
> | Good day,
> |
> | In section A.2, the manual advises "Linux users will want the urw-fonts package". However, this package only seems to be available for RedHat Linux and Fedora Linux. What about for Debian or Ubuntu ? There is no
2004 Nov 24
2
LDA with previous PCA for dimensionality reduction
Dear all, not really a R question but:
If I want to check for the classification accuracy of a LDA with
previous PCA for dimensionality reduction by means of the LOOCV method:
Is it ok to do the PCA on the WHOLE dataset ONCE and then run the LDA
with the CV option set to TRUE (runs LOOCV)
-- OR--
do I need
- to compute for each 'test-bag' (the n-1 observations) a PCA
2006 Nov 07
2
snow's makeCluster hanging (using Rmpi)
Hello everyone,
I've been fiddling around with the snow and Rmpi packages on my new Intel
Mac, and have run into a few problems. When I make a cluster on my machine,
both slaves start up just fine, and everything works as expected. When I try
to make a cluster including another networked machine it hangs. I've
followed the suggestions at
2023 Dec 31
1
custom built R will not change BLAS/LAPACK with update-alternatives
On 30 December 2023 at 23:49, Ramon Diaz-Uriarte wrote:
| All is good. (Just for the sake of curiosity, and if you have the time: why did you find those incantations suspicious?)
Memory is fuzzy and no ECC in my wetware :) but as I seem to recall it had
to do with my fears over filenames not being standardized enough / this
interfering with the update-alternatives mechanism. May well have been
2005 Dec 12
1
dendrogram: how to obtain leaf height
Dear All,
How can the height of a leaf be extracted from a dendrogram?
Sure, I can print it, but I am not able to, say, store it in an object. I think I understand that the height is a property of the split, not the leaf itself, but the printing functions display a "height" or "h" (which changes with "hang") and that is what I want. Obviously, the info is there