Displaying 20 results from an estimated 1000 matches similar to: "drop argument for apply, rowSums, etc."
2008 Dec 12
0
Fwd: Re: The end of Matlab (sorry, I messed up a sentence)
---------- Weitergeleitete Nachricht ----------
Betreff: Re: [R] The end of Matlab
Datum: Freitag 12 Dezember 2008
Von: Claudia Beleites <cbeleites at units.it>
An: r-help at r-project.org
Am Freitag 12 Dezember 2008 13:10:20 schrieb Patrick Burns:
> How about:
>
> x[, -seq(to=ncol(x), length=n)]
Doing it is not my problem. I just agree with Mike in that I would like if I
could
2010 Nov 16
1
Vignette Questions
Dear List,
I recently stumbled over the possibility and need to specifiy
% \VignetteDepends{}
in my vignettes. I did not know about this, and I notice that it is not
mentioned in the R-extensions manual section "Writing package vignettes".
I have some questions with regards to that:
- would it be possible to include into the section "Writing package
vignettes" some hint
2009 Aug 04
0
Sweave errors during package building
Dear all,
I just spent quite a while fixing a weird error in my vignettes while doing
R CMD build and R CMD check
R CMD Sweave ran fine, though.
The cause turned out to be:
1. I have a data set flu,
2. and a corresponding vignette explaining things one can do with that
object. This vignette creates another object flu (which masks the packages
one).
3. Now when the next vignette is
2010 Aug 17
1
prompt () and backticks for default arguments
Dear all,
I just noticed, that prompt () looses backticks that protect default arguments:
f <- function (FUN = `*`) {}
cat (prompt (f, NA)$usage)
yields:
\usage{ f(FUN = *) } %- maybe also 'usage' for other objects documented here.
without the backticks, which is of course found by R CMD check as syntax error.
While this is easily fixed if the .Rd is further edited manually, I
2011 Jan 20
1
plotmath indices: suggested addition to help file
Dear all,
I just stumbled over the fact that subsetting by square bracket will only output
the first given index. I guess the rest is thrown away by the CADDR in RenderSub
(plotmath.c l. 1399).
Maybe changing this could be considered as "low-priority desired" (would be nice
if the output works for ?
However, I suggest to announce the fact that only the first parameter is printed
in
2010 Jul 22
0
sweep / mapply question
Dear list,
I have a matrix, spc, that should row-wise be interpolated:
E.g.
spc <- matrix (1:1e6, ncol = 250, nrow = 4000, byrow = TRUE)
spc [1:10, 1:10]
shifts <- seq_len (nrow (spc))
wl <- seq_len (ncol (spc))
interpolate <- function (spc.row, shift, wl)
spline (wl + shift, spc.row, xout = wl, method = "natural")$y
interpolate (spc [1,], shift = shifts [1], wl = wl)
2011 Jan 20
0
puzzled with plotmath
Dear all,
I'm puzzled with matrix indices in plotmath.
I'm plotting matrix elements: Z [i, i], and I'd like to put that as label. I'll
describe what I want and what I get in LaTeX-notation.
The output should look like Z_{i, i}, and my first try was
plot (1, 1, ylab = expression (Z[i, i]))
That, however, gives me Z_{i} (no comma, no second i) although the expression
looks OK
2008 Dec 22
2
methods vs. functions
Dear List,
a second, more general, question concerning S4 classes.
I have a bunch of functions/methods for my class.
At the moment I have them as methods, because they work on objects of my S4
class and therefore "belong" to that class.
On the other hand, it is comparably unlikely that someone else wants the same
kind of method.
And package.skeleton () produces the
2008 Nov 03
1
Fourier Transform with irregularly spaced x
Dear all,
I work with (vibrational) spectra: some kind of intensity (I) over frequency
(nu), wavelength or the like.
I want to do fourier transform for interpolation, smoothing, etc.
My problem is that the spectra are often irregularly spaced in nu: the
difference between 2 neighbouring nu varies across the spectrum, and data
points may be missing.
Searching for discrete fourier transform
2010 Feb 28
1
dots for sample
Dear R-Developers,
could 'sample' gain a ... argument?
As a convenience function, I added a sample Method to my hyperSpec
class. This function however has a flag indicating whether the results
should be returned directly as a hyperSpec object or rather as indices
that give a random sample.
For the moment, I use SetGeneric to add the dots argument, but this of
course gives a warning
2010 Nov 12
1
Xapply question
Dear list,
I'm stuck with looking for a function of the *apply family, which I suppose
exists already ? just I can't find it:
What I'm looking for is somewhere between sweep and mapply that does a
calculation vectorized over a matrix and a vector:
It should work complementary to sweep: for each row of the matrix, a different
value of the vector should be handed over.
Close to
2011 Jan 20
4
puzzled with plotmath II
sorry, I forgot my sessionInfo: please see below.
-------- Original Message --------
Subject: puzzled with plotmath
Date: Thu, 20 Jan 2011 12:48:18 +0100
From: Claudia Beleites <cbeleites at units.it>
To: R Help <r-help at r-project.org>
Dear all,
I'm puzzled with matrix indices in plotmath.
I'm plotting matrix elements: Z [i, i], and I'd like to put that as label.
2008 Dec 22
2
... (dotMethods) and cbind/rbind: how to give the signature?
Dear List,
I'm struggling with the signature writing cbind/rbind functions for a S4
class.
First of all, I'm very happy that it is now possible to dispatch on ...
I follow the example for "paste" in ?dotMethods, which works as far as this:
### start example
setClass ("cbtest",
representation = representation (data = "data.frame"),
2010 Oct 05
3
SweaveInput + keep.source = TRUE trouble
Dear all,
I have trouble with R-beta sweaving files that include definitions with
\SweaveInput in combination with keep.source = TRUE
Symptom:
SInput is taken from too far down the input file (the shift is the number of
lines of the included file). Is that known? Searching didn't turn up anything,
yet I think there are more people than just me using keep.source.
Example:
$
2012 Jul 25
0
hyperSpec user survey
Dear all,
I'm looking for users of the hyperSpec package for handling
(hyper)spectral or spectroscopic data in R which I maintain.
First of all, I made a few announcements concerning the further
development which can be found in the hyperSpec-help mailing list an on
which I hope to get user feedback: see
http://lists.r-forge.r-project.org/pipermail/hyperspec-help/2012-July/thread.html.
My
2012 Jan 11
3
Command completion of the R binary / Ubuntu
Dear Deepayan and dear list,
I notice a small inconsistency with the command completion of the R CMD
check. --no-latex is deprecated sincs R 2.12.0 and defunct since 2.13.0
but the command line completion still suggests it:
cb at cbdesktop:~/r-devel$ bin/R CMD check --no-<here I hit tab>
--no-clean --no-examples --no-latex --no-vignettes
--no-codoc --no-install
2012 Jan 11
3
Command completion of the R binary / Ubuntu
Dear Deepayan and dear list,
I notice a small inconsistency with the command completion of the R CMD
check. --no-latex is deprecated sincs R 2.12.0 and defunct since 2.13.0
but the command line completion still suggests it:
cb at cbdesktop:~/r-devel$ bin/R CMD check --no-<here I hit tab>
--no-clean --no-examples --no-latex --no-vignettes
--no-codoc --no-install
2012 Aug 14
0
as.numeric and as.character with locale using comma as separator
Dear all,
summary:
My LC_NUMERIC is changed from C to de_DE by library (qtbase).
[which shouldn't happen according to the warning when setting it back
manually].
I posted an issue at their github repository, but maybe the behaviour is
a bit more of general interest.
However, if LC_NUMERIC is changed, as.character () uses the decimal
separator that belongs to LC_NUMERIC (and not options
2011 Mar 02
3
transform table to matrix
I have a text file that I have imported into R. It contains 3 columns and
316940 rows. The first column is vegetation plot ID, the second species
names and the third is a cover value (numeric). I imported using the
read.table function.
My problem is this. I need to reformat the information as a matrix, with the
first column becoming the row labels and the second the column labels and
the cover
2006 Nov 28
1
There exist a FCS package on R-languaje?
Hi all, excuse me by this elementary question. I wish to know if a
package in language R exists to analyze FCS (Fluorescence Correlation
Spectroscopy) datas. And, if it possible, in addition can read the
archives in raw format generated by the ConfoCor2 program.
Thanks Horacio.
****************************************************************************
Dr. Horacio Castellini