similar to: sweep / mapply question

Displaying 20 results from an estimated 2000 matches similar to: "sweep / mapply question"

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
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"),
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 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
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
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
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
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
2011 Feb 14
0
drop argument for apply, rowSums, etc.
Dear list, dear Henrik, I find myself often reconstructing matrices from the result of rowSum (matrix) etc. I therefore propose a new argument, drop, for these functions: drop = TRUE (default) is the current behaviour. With drop = FALSE length (dim (x)) and dimnames are preserved and the affected dimensions are set to 1 (or whatever teh result length of the applied function is) I modified the
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
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.
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: $
2011 May 04
1
Outlier removal by Principal Component Analysis : error message
Hi, I am currently analysis Raman spectroscopic data with the hyperSpec package. I consulted the documentation on this package and I found an example work-flow dedicated to Raman spectroscopy (see the address : http://hyperspec.r-forge.r-project.org/chondro.pdf) I am currently trying to remove outliers thanks to PCA just as they did in the documentation, but I get a message error I can't
2005 Nov 20
1
mapply() gives seg fault (PR#8332)
--KsGdsel6WgEHnImy Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit Hi, people. Wandering in R archives, and seeing the message attached below, I noticed that: mapply(rep,times=1:4, MoreArgs=42) still segfaults on R 2.2.0, and thought I should be a good citizen and report it, even if I do not have an actual problem
2001 Mar 16
0
smbclient tar problem
Hello all. I'm using Samba 2.0.7 on Linux, and I've been having a problem I can't figure out. I was backing up a coworker's machine using the smbclient tar capability. He's got Win2k. I was looking at the tar file that was generated, and in some of the deeply nested directories, I'd get stuff like this: ./Projects/From MM58836/SPC internal Web/New
2009 Oct 19
1
updating columns using other column as reference
Dear R-gurus, Just supose I have a dara.frame that looks like myDF<-read.table(stdin(),head=T,sep=",") codID,namesp,k1,k2,k3,k4 1,spA,2,5,6,3 2,spB,4,5,4,6 3,spC,2,1,5,6 4,spC,5,4,3,2 5,spD,1,2,3,4 6,spE,2,4,3,1 I need to update the columns k1-k4 with the namesp, but considering the math between Kx and codID. My desired output must looks like: codID,namesp,k1,k2,k3,k4
2011 Sep 01
4
[PATCH] xen,credit1: Add variable timeslice
Add a xen command-line parameter, sched_credit_tslice_ms, to set the timeslice of the credit1 scheduler. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> diff -r 4a4882df5649 -r 782284c5b1bc xen/common/sched_credit.c --- a/xen/common/sched_credit.c Wed Aug 31 15:23:49 2011 +0100 +++ b/xen/common/sched_credit.c Thu Sep 01 16:29:50 2011 +0100 @@ -41,15 +41,9 @@ */ #define
2011 Oct 08
0
Quickbooks 2008 - How can I get this functional?!
So, I got Quickbooks 2008 working in the latest WINE, and Ubuntu 11.04. Problems happen when I try and open an existing company file. It wants to update, and then updating fails, and then the whole shebang fails to load after that. I even tried copying the Quickbooks folder from the other system (just need to change the license) to make the updates more complete. Same exact problem. It crashes on