Re: [R] < symbols in a data frame

2014-07-09 Thread Claudia Beleites
elp you in forming a decision how to go on: http://stats.stackexchange.com/a/30739/4598 Claudia (Analytical Chemist & Chemometrician) *or you know that they'll not matter for the particular data analysis you want to do -- Claudia Beleites, Chemist Spectroscopy/Imaging Leibniz Institute of Photo

Re: [R] Needed: Beta Testers and Summer Camp Students

2013-04-23 Thread Claudia Beleites
want is a stable center. Best, Claudia -- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email: claudia.belei...@ipht-jena.de phone: +49 3641 206-133 fax: +49 2641 206-399 __

Re: [R] Needed: Beta Testers and Summer Camp Students

2013-04-23 Thread Claudia Beleites
want is a stable center. Best, Claudia -- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email: claudia.belei...@ipht-jena.de phone: +49 3641 206-133 fax: +49 2641 206-399 __

Re: [R] OrgMassSpecR peak area issue

2013-03-18 Thread Claudia Beleites
r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > > http://www.R-project.org/posting-guide.html and provide commented, > > minimal, self-contained, reproducible code. > > __________ > R-help@r-pro

Re: [R] OrgMassSpecR peak area issue

2013-03-18 Thread Claudia Beleites
you may want to consider asking on stackoverflow.com (or chemistry.stackexchange.com) where you can post nicely formatted code, calculation results and images with your question. -- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email:

Re: [R] Transpose a big data file and write to a new file

2013-03-07 Thread Claudia Beleites
——— > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html and provide commented, > minimal, self-contained,

Re: [R] set working directory to current source directory

2012-08-14 Thread Claudia Beleites
question on stackoverflow: http://stackoverflow.com/questions/8835426/get-filename-and-path-of-sourced-file You may want to have a look at the suggestions I got. Best, Claudia -- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Ge

[R] hyperSpec user survey

2012-07-25 Thread Claudia Beleites
won't use names etc. and I won't sell any information. The goal is to have a few slides (geographical distribution of users - always a nice and fancy thing to show, statistics on the kind of spectroscopy etc.) which I'll also put on the hyperSpec homepage so you can use them as well

Re: [R] how to know perfect execution of function ? & if error occurred in execution, how to report it?

2012-03-23 Thread Claudia Beleites
_ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Spectroscopy/Ima

Re: [R] remoting ESS/R with tramp

2012-01-13 Thread Claudia Beleites
Tom, what happens with: (Emacs) M-x ssh t (you should have the remote shell buffer now) R (once R is started) M-x ess-remote r ? Claudia -- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email: claudia.belei...@ipht

Re: [R] Base function for flipping matrices

2012-01-02 Thread Claudia Beleites
e HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, min

Re: [R] How to get intecerpt standard error in PLS

2011-10-24 Thread Claudia Beleites
nd provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email: claudia.belei...@ipht-jena.de phone: +49 3641 206-133 fax: +49 26

Re: [R] Package snow: is there any way to check if a cluster is "acticve"

2011-10-13 Thread Claudia Beleites
ad the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email: claudia.belei...@ipht-jena.de phone: +49 3641 206-

Re: [R] speed up this algorithm (apply-fuction / 4D array)

2011-10-06 Thread Claudia Beleites
uide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email: claudia.belei...@ipht-jena.de phone: +49 3641 206-133 fax: +49

Re: [R] Package for Neural Network Classification Quality

2011-09-27 Thread Claudia Beleites
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email: claudia.belei...@ipht-jena.de phone: +49 3641 206-133 fax: +49 2641 206-399

Re: [R] predictive accuracy

2011-05-26 Thread Claudia Beleites
[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reprodu

Re: [R] Help with 2-D plot of k-mean clustering analysis

2011-05-18 Thread Claudia Beleites
ead the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email: claudia.belei...@ipht-jena.de phone: +

Re: [R] Outlier removal by Principal Component Analysis : error message

2011-05-05 Thread Claudia Beleites
___ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Spectroscopy/Imagin

Re: [R] ROCR - best sensitivity/specificity tradeoff?

2011-04-07 Thread Claudia Beleites
Christian, My questions concerns the ROCR package and I hope somebody here on the list can help - or point me to some better place. When evaluating a model's performane, like this: pred1<- predict(model, ..., type="response") pred2<- prediction(pred1, binary_classifier_vector) perf<- performa

Re: [R] Element by element mean of a list of matrices

2011-03-15 Thread Claudia Beleites
Peter, as the matrices in the list have the same shape, you can unlist them into an array and then use rowMeans. HTH Claudia Am 15.03.2011 21:17, schrieb hihi: Hi All, is there any effiective and dense/compact method to calculate the mean of a list of - of course coincident - matrices on a

Re: [R] Large dataset operations

2011-03-11 Thread Claudia Beleites
Haakon, as replicates imply that they all have the same data type, you can put them into a matrix which is often faster and needs less memory (though whether that can really matter depends of the number of replicates you have: for small no of replicates you won't have much effect anyways). Bu

Re: [R] Plot with same font like in LaTeX

2011-03-02 Thread Claudia Beleites
Jonas, have a look at tikzdevice Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 0 40 5 58-37 68 email: cbelei...@units.it __ R-help

Re: [R] Problems using unique function and !duplicated

2011-02-28 Thread Claudia Beleites
y solve this ? Thanks in advance. Jon -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 0 40 5 58-37 68 email: cbelei...@units.it __ R-help@r-projec

Re: [R] re-arranging data to create an image (or heatmap)

2011-02-28 Thread Claudia Beleites
an image example from matlab. This is how far I got using R: http://r.789695.n4.nabble.com/file/n3327986/example_R.jpg This is the result I am aiming for: http://r.789695.n4.nabble.com/file/n3327986/example_matlab.jpg -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Universit

Re: [R] Incorrectness of mean()

2011-02-28 Thread Claudia Beleites
his possible? the x that is averaged is only the first 1.04, the other numbers go into mean's ... argument and are ignored. Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 0 40 5

Re: [R] The L Word

2011-02-24 Thread Claudia Beleites
lq median uq max sd 52875 53615 54040 54448 1385422 si 45904 46936 47332 47778 65360 Cheers, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Tr

Re: [R] The L Word

2011-02-24 Thread Claudia Beleites
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Dipartimen

Re: [R] The L Word

2011-02-23 Thread Claudia Beleites
an/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34

Re: [R] segfault during example(svm)

2011-02-18 Thread Claudia Beleites
downloaded packages are in ‘/tmp/RtmpRJM5aT/downloaded_packages’ Updating HTML index of packages in '.Library' Making packages.html ... done -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Tries

Re: [R] segfault during example(svm)

2011-02-18 Thread Claudia Beleites
IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base It is working at some of my systems and is failing at the most. ______ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PL

Re: [R] {Spam?} Re: sort a 3 dimensional array across third dimension ?

2011-02-18 Thread Claudia Beleites
J === Dr. Jim Maas Research Associate in Network Meta-Analysis School of Medicine, Health Policy and Practice CD Annex, Room 1.04 University of East Anglia Norwich, UK NR4 7TJ +44 (0) 1603 591412 From: Claudia Beleites [mailto:cbelei...@units.it] Dear James, this

Re: [R] sort a 3 dimensional array across third dimension ?

2011-02-18 Thread Claudia Beleites
3 [2,]12 , , 2 [,1] [,2] [1,]64 [2,]56 , , 3 [,1] [,2] [1,]97 [2,]99 HTH Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 0 40

Re: [R] amount of data R can handle in a single file

2011-02-17 Thread Claudia Beleites
ling list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di T

Re: [R] When is *interactive* data visualization useful to use?

2011-02-11 Thread Claudia Beleites
e frequently of multiple comparisons and validation sets being compromised (not independent) than of too few data exploration ;-) ) -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 0 40 5 58-37 68

Re: [R] spline interpolation

2011-02-05 Thread Claudia Beleites
leted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Bel

Re: [R] "Matrix' with Functions

2011-02-03 Thread Claudia Beleites
to thank you in advance for your help Best Regards Alex __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Bele

Re: [R] slightly off topic...

2011-02-02 Thread Claudia Beleites
such email reveals: - the part or Teil is how my thunderbird (English at work, German at home) announces the parts of multipart emails. Neither "part 1.2" nor "Teil 1.2" is written anywhere in the source. - the r-help list footer somehow ended up as separate part of the email

Re: [R] pdf greek letter typos

2011-01-27 Thread Claudia Beleites
e ttf-symbols-replacement did the trick for evionce & Co. on my system (acrobat reader was never affected; but used to show pdfs with transparency quite ugly - there was a discussion with solutions to both problems on the ggplot2 list last fall). HTH, Claudia -- Claudia Beleites Diparti

Re: [R] puzzled with plotmath II

2011-01-20 Thread Claudia Beleites
thanks a lot for the patience everyone: problem is solved, solutions (including bquote) are to be found in the Wiki, and instead of creating more fuss by unclear emails I'll fetch a coffee before I go on plotting my confusion matrix elements... Claudia -- Claudia Beleites Dipartimento dei

Re: [R] puzzled with plotmath for matrix indices

2011-01-20 Thread Claudia Beleites
On 01/20/2011 02:11 PM, Uwe Ligges wrote: On 20.01.2011 14:08, Claudia Beleites wrote: Gerrit, thanks & viele Grüße nach Oberhessen :-) plot (1, 1, ylab = expression (Z[list(i,i)])) though that cannot be evaluated, either (due to [ not knowing what to do with an index list) Works

Re: [R] puzzled with plotmath for matrix indices

2011-01-20 Thread Claudia Beleites
quot;i, i"])) Anyways, I put the "how to" into the R Wiki page on plotmath. And I suggest that it should be mentioned in the plotmath help => email to r-devel. Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via

[R] puzzled with plotmath II

2011-01-20 Thread Claudia Beleites
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 To: R Help Dear all, I'm puzzled with matrix indices in plotmath. I'm plotting matrix elements: Z [i, i

[R] puzzled with plotmath

2011-01-20 Thread Claudia Beleites
ble to search for the terms being close to each other in RSiteSearch and/or RSeek? I get lots of introductory documents as they point to plotmath and discuss matrices... Thanks a lot for your help, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli

Re: [R] Waaaayy off topic...Statistical methods, pub bias, scientific validity

2011-01-07 Thread Claudia Beleites
On 01/07/2011 06:13 AM, Spencer Graves wrote: A more insidious problem, that may not affect the work of Jonah Lehrer, is political corruption in the way research is funded, with less public and more private funding of research Maybe I'm too pessimistic, but the term _political_ corruption

Re: [R] Removing Corrupt file

2010-12-17 Thread Claudia Beleites
ied commands like file.remove() and unlink to remove the corrupt file from current R session. Is there any other way inorder to remove such files?? Thanks& Regards, Vikrant -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Al

Re: [R] Summary (Re: (S|odf)weave : how to intersperse (\LaTeX{}|odf) comments in source code ? Delayed R evaluation ?)

2010-12-13 Thread Claudia Beleites
ent{Soutput}{\lstset{language=R}}{} \lstnewenvironment{Scode}{\lstset{language=R,basicstyle=\sl}}{} \newenvironment{Schunk}{}{} \newcommand{\Sconcordance}[1]{% \ifx\pdfoutput\undefined% \csname newcount\endcsname\pdfoutput\fi% \ifcase\pdfoutput\special{#1}% \else\immediate\pdfobj{#1}\fi} -- Cl

Re: [R] using ``<-'' in function argument

2010-12-03 Thread Claudia Beleites
4 > matrix(nrow = ncol <- 4) [,1] [1,] NA [2,] NA [3,] NA [4,] NA Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 0 40 5 58-3

Re: [R] Performance tuning tips when working with wide datasets

2010-11-24 Thread Claudia Beleites
_ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Dipartimento dei Materiali e dell

Re: [R] plot inside function does not work

2010-11-22 Thread Claudia Beleites
w.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 0 40 5 58-37 68 email: cbelei...@units

Re: [R] a rounding option for \Sexpr{}?

2010-11-19 Thread Claudia Beleites
find a syntax with angle brackets more consistent as the code chunks start with angle brackets anyways. My 2 ct, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste ph

Re: [R] stacking consecutive columns

2010-11-17 Thread Claudia Beleites
8157 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Dip

[R] Xapply question

2010-11-12 Thread Claudia Beleites
a name for something that probably already exists. If this function does not exist, any ideas how I should call it? Thanks a lot, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127

Re: [R] prcomp function

2010-11-10 Thread Claudia Beleites
ion. But as far as I know and as I understand the help text it should have no influence on the eigenvalue equation whether the data are centered or not. I know about the advantages of centered date but I want to understand how the prcomp function works in the case of uncentered data. Thank y

Re: [R] force apply not to drop the dimensions of FUN results ?

2010-11-10 Thread Claudia Beleites
Dear Yves, You may not need to do more than set the dim attribute correctly: dim (test) <- c (dim (myArray) [c (3 : 4, 1 : 2)] or dim (test) <- c (dim (myArray) [c (4 : 3, 1 : 2)] Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli St

Re: [R] arrays of arrays

2010-11-10 Thread Claudia Beleites
e (m) 392 bytes # own representation > o <- structure(c(0, 0, 1, 1, 1, 3, 5, 4, 4, 7, -1, 8, 9, 10, 6), rowstart = c(0, 4, 7, 9)) # index of end of row before saves subtracting 1 all the time > o [1] 0 0 1 1 1 3 5 4 4 7 -1 8 9 10 6 attr(,"rowstart") [1] 0 4 7

Re: [R] R and Matlab

2010-10-29 Thread Claudia Beleites
ded or not, has no effect on writeMat(). It is only readMat() that can read them, if Rcompression is installed. You do not have to load it explicitly/yourself - if readMat() detects a compress MAT file, it will automatically try to load it; OK, good to know. Thanks a lot for your explanation in s

Re: [R] clustering on scaled dataset or not?

2010-10-28 Thread Claudia Beleites
John, Hi, just a general question: when we do hierarchical clustering, should we compute the dissimilarity matrix based on scaled dataset or non-scaled dataset? daisy() in cluster package allow standardizing the variables before calculating dissimilarity matrix; I'd say that should depend

Re: [R] R and Matlab

2010-10-28 Thread Claudia Beleites
lp/techdoc/ref/importdata.html Tom 2010/10/28 Claudia Beleites: I am looking for ways to use R and Matlab. Doing the data transformations in R and using the data in Matlab to analyze with some pre-defined scripts. Any good ways to transfer the data into matlab in its most recent version? I tried usi

Re: [R] R and Matlab

2010-10-28 Thread Claudia Beleites
N=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] Rcompression_0.8-0 hyperSpec_0.95 lattice_0.19-13R.matlab_1.3.3 R.oo_1.7.4 [6] R.methodsS3_1.2.1 loaded via a namespace (and not attached): [1] grid_2.12.0 -

Re: [R] Random Forest AUC

2010-10-23 Thread Claudia Beleites
Dear List, Just curiosity (disclaimer: I never used random forests till now for more than a little playing around): Is there no out-of-bag estimate available? I mean, there are already ca. 1/e trees where a (one) given sample is out-of-bag, as Andy explained. If now the voting is done only ov

Re: [R] superscript characters in title with '+'

2010-10-22 Thread Claudia Beleites
fter the concentration brackets into a subscript - though you didn't say you want that. A more "correct" expression would be: group ("[", Ca^'2+', "]") [i]~onsets where you can easier see that the "[" and "]" are special le

Re: [R] Accuracy/Goodness of fit of nnet

2010-10-21 Thread Claudia Beleites
odness of fit of nnet model? Thanks in advance. -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 0 40 5 58-37 68 email: cbelei...@units.it __

Re: [R] Question about Density Plot

2010-10-18 Thread Claudia Beleites
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-3412

Re: [R] confusion matrix

2010-10-08 Thread Claudia Beleites
hould become of the additional dimension? with 2d reference and prediction, do you want to produce 3d or 4d confusion "matrices"? Thank you again! You are welcome. Claudia Kind regards, Greg On Oct 8, 2010, at 10:04 AM, Claudia Beleites wrote: Gregory Ryslik wrote: Hi, I played wi

Re: [R] confusion matrix

2010-10-08 Thread Claudia Beleites
sting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 0 40 5 58-37

Re: [R] ROCR predictions

2010-08-17 Thread Claudia Beleites
each of them a separate ROC. But I don't know how to calculate these characteristics for the p-values. How do I assign the predictions to each of the single p-value experiments? I would appreciate any help Thanks Assa On Tue, Aug 17, 2010 at 12:55, Claudia Beleites <mailto:cbele

Re: [R] ROCR data input

2010-08-17 Thread Claudia Beleites
;t want to be nasty, but if you discover the mistakes yourself, you'll be much faster finding such things next time. So: try with these hints, and if it doesn't work, you can ask again. HTH, Claudia -- Claudia Beleites Dipartimento dei Material

Re: [R] ROCR predictions

2010-08-17 Thread Claudia Beleites
omeone asked for optimum on ROC a couple of months ago, RSiteSearch on the mailing list with ROC and optimal or optimum should get you answers. I would like to thank for any help in advance You're welcome. Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali

Re: [R] cacheSweave / pgfSweave driver for package vignette

2010-08-13 Thread Claudia Beleites
e one myself. I think they could be helpful here to switch between the "development checks" and a complete build & check. So I'd be very curious to see some make files. HTH, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università

[R] sweep / mapply question

2010-07-22 Thread Claudia Beleites
y faster than sapply, a bit less than half of the time of mapply). However, as I expect this to be a fairly common situation, I want to share this experience, and the question is: is there a better / faster / nicer / more elegant way to do this? Comments? Thanks, Claudia -- Claudia Belei

Re: [R] Sweave: infelicities with lattice graphics

2010-07-15 Thread Claudia Beleites
Dear David, you can use Gin: \setkeys{Gin}{width=0.5\linewidth} just before the chunk that actually produces the figure. and, cool, I hadn't realized, that <>= print ( <> ) @ works. with {} inside the print there can be even more than one statement in the chunk-with-lattice-functi

Re: [R] Backslash \ in string

2010-07-15 Thread Claudia Beleites
Jannis, You are right, it does not seem to matter. When the R string contains two \\, xtable prints it as only one \. I should have looked into the Latex output before posting! '\\' is just _one_ character in R: > nchar ("\\") [1] 1 Just like '\n' etc. It is just the `print`ed (as opposed

Re: [R] Sweave: infelicities with lattice graphics

2010-07-15 Thread Claudia Beleites
Dear Michael, I know this situation from writing vignettes and I usually cheat a bit I redefine the functions along these lines: plotmap <- function (...) print (hyperSpec:::plotmap (...)) (plotmap is a lattice-function for hyperSpec objects) plotmap can tehn be used without the print in t

Re: [R] merge

2010-06-15 Thread Claudia Beleites
anks a lot __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Dipart

Re: [R] logistic regression with 50 varaibales

2010-06-14 Thread Claudia Beleites
uestion I have is: I assume that it is impossible for him to obtain the 10^xy samples required for comfortable model building. So what is he to do? Cheers, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valer

Re: [R] ROC curve

2010-05-24 Thread Claudia Beleites
unction of the threshold. Remember: finding the optimal threshold from a ROC curve is a data-driven optimization. You need to validate the resulting model with independent test data afterwards. -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di T

Re: [R] Data frame question

2010-03-12 Thread Claudia Beleites
rate Research Laboratory - E-mail: apjawor...@mmm.com Tel: (651) 733-6092 Fax: (651) 736-3122 From: Claudia Beleites To: apjawor...@mmm.com Cc: r-help@r-project.org Date: 03/12/2010 02:13 PM Subject:Re: [R] Data frame question Andy, Did you run into any kind of tro

Re: [R] Data frame question

2010-03-12 Thread Claudia Beleites
(651) 736-3122 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-

Re: [R] Getting multiple matrix-values using a single command

2010-03-12 Thread Claudia Beleites
ing guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 0 40 5 58-37 68 em

Re: [R] Help on getting help from manuals

2010-03-12 Thread Claudia Beleites
is like asking "How do you say in R for concept xyz?" instead of "Could anyone do the translation I got as homework?" HTH, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Triest

Re: [R] modifying the dots argument - how?

2010-03-11 Thread Claudia Beleites
THIS POINT I WANT TO MODIFY THE CONTENT OF ... BEFORE IT IS PASSED ON innerFoo(...) } Thanks, Mark ––– Mark Heckmann Dipl. Wirt.-Ing. cand. Psych. Vorstraße 93 B01 28359 Bremen Blog: www.markheckmann.de R-Blog: http://ryouready.wordpress.com -- Claud

Re: [R] colname of ... arguments

2010-03-11 Thread Claudia Beleites
-guide.html<http://www.r-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code. -- View message @ http://n4.nabble.com/colname-of-arguments-tp1588146p1588213.html To unsubscribe from colname of ... arguments, click here< (link

Re: [R] help with lattice boxplots...

2010-03-01 Thread Claudia Beleites
you can use parameters: trellis.par.set (box.rectangle = modifyList (trellis.par.get ("box.rectangle"), list (col = "black"))) bwplot(y~x, data=ex, pch = "|") I think the others go along the same line. Look into panel.bwplot to see what parameters are used to produce what. HTH Claudia K

Re: [R] R help question: How can we enable useRs to contribute corrections to help files faster ?

2010-02-28 Thread Claudia Beleites
What about the short-term solution of having a function package.bug.report - along the lines of bug.report? E.g. see attachment Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Valerio 2 I-34127 Trieste ITALY email: cbelei

Re: [R] two questions for R beginners

2010-02-26 Thread Claudia Beleites
Dear Patrick (and all) I'm now working with R a couple of years, before working mostly in Matlab Lazy & impatient is both true for me :-) * What were your biggest misconceptions or stumbling blocks to getting up and running with R? > * What documents helped you the most in this > initial phas

Re: [R] help me about data format.

2009-07-07 Thread Claudia Beleites
, let me know. Claudia Beleites -- Claudia Beleites DMRN, Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] ggplot2 and lattice

2008-12-16 Thread Claudia Beleites
ensions. That's the parallel coordinate plot. What you can tell from such a plot, depends very much on your data, and how you treated it. Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 T

Re: [R] The end of Matlab

2008-12-12 Thread Claudia Beleites
> evens() & last(5) wouldn't x[evens()][last(5)] do the & already? or is different, though. Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 (0 40) 5 58-34

Re: [R] character count

2008-12-12 Thread Claudia Beleites
nchar (c("convert this to 47 because it has 47 characters", "this one has 26 characters", "13 characters")) HTH Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trie

Re: [R] The end of Matlab

2008-12-12 Thread Claudia Beleites
ort. This might be true in any case. If I only think of how many lines of nrow, ncol, length & Co I could have written instead of posting wrong proposals Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valeri

Re: [R] The end of Matlab

2008-12-12 Thread Claudia Beleites
3rd, 2nd, and 1st' and 'from the 3rd > to the 1st from the end', and so would be ambiguous. in this context, > indeed, having explicit 'end' could help avoid the ambiguity. that's the problem. also: how would 'except from the 5th last to the 3rd last&#x

[R] Fwd: Re: The end of Matlab (sorry, I messed up a sentence)

2008-12-12 Thread Claudia Beleites
-- Weitergeleitete Nachricht -- Betreff: Re: [R] The end of Matlab Datum: Freitag 12 Dezember 2008 Von: Claudia Beleites An: r-help@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

Re: [R] The end of Matlab

2008-12-12 Thread Claudia Beleites
if re (to) != 0 ? } from : to } "%:%" <- function (e1, e2) ## using a new operator does not mess up ":" make.index (x = find.x (), along.dim = find.dim (), e1, e2) now, the heavy part are the still missing find.x () and find.dim () func

Re: [R] The end of Matlab

2008-12-12 Thread Claudia Beleites
mensions of an array)? I.e. something nicer than t (head (t (x), -n)) for excluding the last n columns of matrix x THX, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 (0 40) 5

Re: [R] for loop query

2008-12-09 Thread Claudia Beleites
: 26 is i + (1 : 26) as the vector 1 :26 is calculated first what happens is that for i = 1 j goes over 2 : 27, with i = 2 over 3 : 28, ... what you want is (i + 1) : 26: for (i in 1 : 25) for (j in (i + 1) : 26) cat (i, j, "\n") HTH Claudia -- Claudia Beleites Dip

Re: [R] 1-Pearson's R Distance

2008-11-27 Thread Claudia Beleites
the proxy package, but the calculation it straightforward (though a bit wasteful I suspect: first the whole matrix is produced, and as.dist cuts it down again to a triangular matrix): as.dist (0.5 - cor (t(x) / 2)) Take care wheter you want to use x or t(x). HTH Claudia -- Claudia Beleites Dip

Re: [R] simplify this instruction

2008-11-19 Thread Claudia Beleites
","A", > ifelse(B=="4","A", > ifelse(B=="5","A", > ifelse(B=="6","A", > ifelse(B=="7","A", > ifelse(B=="8","A", > ifelse(B=="9","A","B")))

Re: [R] Fourier Transform with irregularly spaced x

2008-11-03 Thread Claudia Beleites
to do other interesting things like downsampling, denoising etc. using the interferogram. Thanks, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 (0 40

[R] Fourier Transform with irregularly spaced x

2008-11-03 Thread Claudia Beleites
uld I look? Or am I lacking some math that tells how to do without the frequency axis? Thanks a lot for your help, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 (0 40) 5 58-

Re: [R] Row and Column positions

2008-10-31 Thread Claudia Beleites
Am Freitag 31 Oktober 2008 12:17:30 schrieb Shubha Vishwanath Karanth: > m=data.frame(a=c(1,NA,5,5),b=c(4,5,6,7),c=c(NA,NA,NA,5)) ? which HTH Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34

  1   2   >