Re: [R] Column mapping

2010-07-28 Thread Stefan Grosse
Am 28.07.2010 07:36, schrieb jd6688: DF1 name OTHER ABCO KKKO QQQO DDDO PPPO DF2 name ABC KKK DDD If the names in df1 mapped the names in df2, then add the mapped name to df1 as a separate column, for instance mappedColumn What do you mean by mapped:

[R] ddply error

2010-07-28 Thread jd6688
ddply(z, .(groupId,location),function(d)with(d, c(startLoc=Pos[1],endLoc=Pos[length(Pos)], peakValue=max(sumoo),other=map[1]))) startLoc=Pos[1],endLoc=Pos[length(Pos)], peakValue=max(sumoo),numeric value other=map[1]===charactor value as a result:

Re: [R] hatching posibility in Panel.Polygon

2010-07-28 Thread baptiste auguie
Hi, library(gridExtra) example(patternGrob) provides some patterns to fill a rectangular area using Grid graphics. It could in theory be used in lattice. I wouldn't use it either, but I can imagine how it might be useful on very special occasions. Best, baptiste On 28 July 2010 06:11, HC

Re: [R] xYplot error

2010-07-28 Thread Kang Min
Hi Frank, Thanks for the suggestion. using numericScale() does work for Dotplot, but there're still a few issues: 1. My factor names are Plot A, PF, MSF, and YSF, so numericScale turns that into 3, 2, 1, 4 and the x-axis is plotted 1, 2, 3, 4. Is there any way I can retain the same order on the

Re: [R] Optimization problem with nonlinear constraint

2010-07-28 Thread Uli Kleinwechter
Dear Ravi, As I've already written to you, the problem indeed is to find a solution to the transcendental equation y = x * T^(x-1), given y and T and the optimization problem below only a workaround. John C. Nash has been so kind to help me on here. In case anyone faces a similar problem in

Re: [R] T and F (was: Optimization problem with nonlinear constraint)

2010-07-28 Thread Patrick Burns
Some care is in order: Using 'T' as a variable name is quite dangerous in R since it is an alias for 'TRUE'. Rules to live by: * Avoid using 'T' and 'F' as object names. * Use 'TRUE' and 'FALSE', not 'T' and 'F'. If you follow these, then you won't be tripped up, and you won't trip other

Re: [R] Using jpeg() without X

2010-07-28 Thread Prof Brian Ripley
On Tue, 27 Jul 2010, mic wrote: When I tried this, I'm having this error. Can somebody help me on this. Are there any alternatives or workaround for this? I'm having hard time to convince our admin to install X11 library and headers since they are not included on the default OS installation.

[R] Time-dependent covariates in survreg function

2010-07-28 Thread Michael Haenlein
Dear all, I'm asking this question again as I didn't get a reply last time: I'm doing a survival analysis with time-dependent covariates. Until now, I have used a simple Cox model for this, specifically the coxph function from the survival library. Now, I would like to try out an accelerated

[R] Understanding how R works

2010-07-28 Thread Alaios
Hello everyone. I am more than new into R. Today I have started reading about grf function that is included in geoR package. According the manual (vignette?) grf() generates (unconditional) simulations of Gaussian random fields for given covariance parameters. geoR2RF converts model

Re: [R] Time-dependent covariates in survreg function

2010-07-28 Thread Dimitris Rizopoulos
Dear Michael, AFAIK survreg() cannot handle time-dependent covariates. In particular, things are getting more complicated under the accelerated failure time framework when it comes to the handling of time-dependent covariates. Moreover, it is important (for both Cox and AFT models) to

Re: [R] How to deal with more than 6GB dataset using R?

2010-07-28 Thread Jens Oehlschlägel
Matthew, You might want to look at function read.table.ffdf in the ff package, which can read large csv files in chunks and store the result in a binary format on disk that can be quickly accessed from R. ff allows you to access complete columns (returned as a vector or array) or subsets of

Re: [R] sqldf 0.3-5 package or tcltk problem

2010-07-28 Thread Gabor Grothendieck
On Wed, Jul 28, 2010 at 1:21 AM, erickso...@aol.com wrote:  This is my first post. I am running Mac OS X version 10.6.3. I am running R 2.11.0 GUI 1.33 64 bit. This may or may not be related to sqldf, but I experienced this problem while attempting to use an sqldf query. The same code

[R] Odp: Understanding how R works

2010-07-28 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 28.07.2010 10:08:37: Hello everyone. I am more than new into R. Today I have started reading about grf function that is included in geoR package. According the manual (vignette?) grf() generates (unconditional) simulations of Gaussian

Re: [R] Installing the Zoo *package*

2010-07-28 Thread Martin Maechler
It's a package, not a library ... I've changed the subject line where you had library. A library in R is a directory in which packages are stored, and which you see from typing 'library()' or a file with a collection of *compiled* C, Fortran, C++, etc functions (sometimes called a DLL, notably

Re: [R] [Rd] R CMD build wiped my computer

2010-07-28 Thread Jarrod Hadfield
Hi Martin, I think this is the most likely reason given that the name in the DESCRIPTION file does NOT have a version number. Even so, it is very easy to misname a file and then delete it/change its name (as I've done here) and I hope current versions of R would not cause this problem.

[R] message box

2010-07-28 Thread Martin du Saire
Hi, I need some help figuring out how to make a pop-up message box appear with error messages when running a script using Rterm. Windows XP R2.10.1 ...possibly with the ability to either continue or abort the script? Thanks. M -- [[alternative HTML version deleted]]

[R] print(list) ?show all values?

2010-07-28 Thread nero
Hello! I´m playing arround with rJava... Always when i want to print(list), it only shows me the first values, and then (900534 more values follow)... How can i get arround this? what i´m doing wrong? I want that all values are printed ? -- View this message in context:

[R] ...more values follow?

2010-07-28 Thread nero
Hello! I´m playing arround with rJava... Always when i want to print(list), it only shows me the first values, and then (900534 more values follow)... How can i get shure, that all list-values are printed? what i´m doing wrong? -- View this message in context:

[R] Introductory statistics and introduction to R

2010-07-28 Thread Marsh Feldman
Hi, I have a bright, diligent second-year graduate student who wants to learn statistics and R and will, in effect, be taking a tutorial from me on these subjects. (If you've seen some of my questions on this list, please don't laugh.) As an undergrad he majored in philosophy, so this will

[R] Data frame modification

2010-07-28 Thread siddharth . garg85
Hi I am trying to modify a data frame D with lists x and y in such a way that if a value in x==0 then it should replace that value with the last not zero value in x. I.e. for loop over i{ if(D$x[i]==0) D$x[i]=D$x[i-1] } The data frame is quite large in size ~ 43000 rows. This operation

[R] How to point a column of dataframe by a character

2010-07-28 Thread Tony
Hello, Here is a dilemma I am having for a long time. But, I couldn't figure it out. I have an vector of Y and a data frame named data,which contains all Xs. I tried to be more efficient in fitting a simple linear regression with each X. Firstly, for (i in 1:(dim(data)[2])){

[R] finding the next highest number in an array

2010-07-28 Thread Raghu
Hi I have a sorted array ( in ascending order) and I want to find the subscript of a number in the array which is the the next highest number to a given number. For example,if I have 67 as a given number and if I have a vector x=c(23,36,45,62,79,103,109), then how do I get the subscript 5 from x

Re: [R] re-sampling of large sacle data

2010-07-28 Thread David Winsemius
On Jul 27, 2010, at 6:44 PM, jd6688 wrote: I am trying to do the following to accomplish the tasks, can anybody to simplify the solutions. Thanks, for (i in 1:1){ d-apply(s,2,sample) pos_neg_tem-t(apply(d,1,doit)) if (i1){ pos_neg_pool-rbind(pos_neg_pool,pos_neg_tem) }else{

Re: [R] finding the next highest number in an array

2010-07-28 Thread Dimitris Rizopoulos
a couple of the many possible ways are: x - c(23,36,45,62,79,103,109) thr - 67 x[x thr][1] head(x[x thr], 1) I hope it helps. Best, Dimitris On 7/28/2010 12:12 PM, Raghu wrote: Hi I have a sorted array ( in ascending order) and I want to find the subscript of a number in the array

[R] memory problem for scatterplot using ggplot

2010-07-28 Thread Edwin Husni Sutanudjaja
Dear all, I have a memory problem in making a scatter plot of my 17.5 million-pair datasets. My intention to use the ggplot package and use the bin2d. Please find the attached script for more details. Could somebody please give me any clues or tips to solve my problem?? please ... Just for

[R] Help with scatterplots in R

2010-07-28 Thread Sarah Chisholm
Hi, When I plot a scatter plot, R automatically only gives the years on the x-axis. How can I make R also show the months on the x-axis? Thank you very much! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] easy debugging

2010-07-28 Thread Martin Maechler
ycw == ying chen wang gracedrop.w...@gmail.com on Mon, 26 Jul 2010 17:10:24 -0400 writes: ycw Yes, thanks. Just found out the solution. Thanks for the help. ycw Just started R. Not familiar with its environment. ycw G ycw On Mon, Jul 26, 2010 at 5:08 PM, jim holtman

[R] strange error : isS4(x) in gamm function (mgcv package). Variable in data-frame not recognized???

2010-07-28 Thread Joris Meys
Dear all, I run a gamm with following call : result - try(gamm(values~ s( VM )+s( RH )+s( TT )+s( PP )+RF+weekend+s(day)+s(julday) ,correlation=corCAR1(form=~ day|month ),data=tmp) ) with mgcv version 1.6.2 No stress about the data, the error is not data-related. I get : Error in isS4(x) :

Re: [R] re-sampling of large sacle data

2010-07-28 Thread David Winsemius
On Jul 28, 2010, at 12:09 AM, jd6688 wrote: d - apply(s, 2, sample, size = 1*nrow(s), replace = TRUE) why the code above return the following error Error: cannot allocate vector of size 218.8 Mb Possibilities: Your workspace is full of other junk? Your workspace used to be full of

[R] kde on Torus

2010-07-28 Thread Tim Gruene
Hello, I have 2D-data on a torus, i.e. they are scattered within [0:2pi) and are supposed to be periodic with period 2pi. Is there a way in R for a kernel density estimation for such data? I found this article http://www.dmqte.unich.it/personal/dimarzio/density46.pdf but a) I don't fully

Re: [R] message box

2010-07-28 Thread bruno Piguet
Martin du Saire asked : I need some help figuring out how to make a pop-up message box appear with error messages when running a script using Rterm. Windows XP R2.10.1 Have you tried the exampleshttp://bioinf.wehi.edu.au/%7Ewettenhall/RTclTkExamples/RTclTkExamples.zipcompiled by James

Re: [R] finding the next highest number in an array

2010-07-28 Thread David Winsemius
On Jul 28, 2010, at 7:28 AM, Dimitris Rizopoulos wrote: a couple of the many possible ways are: x - c(23,36,45,62,79,103,109) thr - 67 x[x thr][1] head(x[x thr], 1) Since he wanted the subscript rather than the number wouldn't it be: which(x 67)[1] head( which(x 67), 1) -- David.

Re: [R] strange error : isS4(x) in gamm function (mgcv package). Variable in data-frame not recognized???

2010-07-28 Thread Joris Meys
Dear all, it gets even more weird. After restarting R, the code I used works just fine. The call is generated in a function that I debugged using browser(). Problem is solved, but I have no clue whatsoever how that error came about. It must have something to do with namespaces, but the origin is

[R] Odp: Data frame modification

2010-07-28 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 28.07.2010 11:30:48: Hi I am trying to modify a data frame D with lists x and y in such a way that if a value in x==0 then it should replace that value with the last not zero valuein x. I.e. for loop over i{ if(D$x[i]==0)

Re: [R] Help with scatterplots in R

2010-07-28 Thread John Kane
I think that we need an example of what you are doing before anyone can really answer that question. At the moment we don't even know how you are plotting the scatterplot. --- On Wed, 7/28/10, Sarah Chisholm sarah.chisholm...@ucl.ac.uk wrote: From: Sarah Chisholm sarah.chisholm...@ucl.ac.uk

Re: [R] kde on Torus

2010-07-28 Thread David Winsemius
On Jul 28, 2010, at 7:55 AM, Tim Gruene wrote: Hello, I have 2D-data on a torus, i.e. they are scattered within [0:2pi) and are supposed to be periodic with period 2pi. Is there a way in R for a kernel density estimation for such data? I found this article

Re: [R] How to point a column of dataframe by a character

2010-07-28 Thread Joshua Wiley
Hi Tony, I am sure there are other ways, but I would create formula objects and then pass them to lm(). Here's an example: mydata - data.frame(Y = 1:10, X1 = 11:20, X2 = 21:30) my.names - names(mydata)[-1] for(i in my.names) { my.formula - formula(paste(Y ~ , i, sep = )) my.lm -

Re: [R] [Rd] R CMD build wiped my computer

2010-07-28 Thread Marc Schwartz
Jarrod, Noting your exchange with Martin, Martin brings up a point that certainly I missed, which is that somehow the tilde ('~') character got into the chain of events. As Martin noted, on Linuxen/Unixen (including OSX), the tilde, when used in the context of file name globbing, refers to

[R] Help with specifiying random effects in lmer - psychology experiment

2010-07-28 Thread nuala brady
!-- /* Font Definitions */ @font-face {font-family:Cambria Math; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri;

Re: [R] kde on Torus

2010-07-28 Thread Tim Gruene
Dear David, thanks for the hint. As far as I understand the circular kernels apply only to one-dimensional data, don't they? Tim On Wed, Jul 28, 2010 at 08:57:40AM -0400, David Winsemius wrote: On Jul 28, 2010, at 7:55 AM, Tim Gruene wrote: Hello, I have 2D-data on a torus, i.e. they are

Re: [R] xYplot error

2010-07-28 Thread Frank Harrell
Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University On Wed, 28 Jul 2010, Kang Min wrote: Hi Frank, Thanks for the suggestion. using numericScale() does work for Dotplot, but there're still a few

Re: [R] [Rd] R CMD build wiped my computer

2010-07-28 Thread Kevin Wright
I doubt if it will be helpful for Jarrod, but when I hear stories like this, I remember reading about a similar event and a remarkable partial recovery here: http://www.justpasha.org/folk/rm.html http://www.justpasha.org/folk/rm.htmlKevin On Wed, Jul 28, 2010 at 8:04 AM, Marc Schwartz

[R] Fwd: How to point a column of dataframe by a character

2010-07-28 Thread David Winsemius
(Forgot to copy the list.) Begin forwarded message: From: David Winsemius dwinsem...@comcast.net Date: July 28, 2010 7:44:38 AM EDT To: Tony lul...@gmail.com Subject: Re: [R] How to point a column of dataframe by a character On Jul 28, 2010, at 5:35 AM, Tony wrote: Hello, Here is a

Re: [R] Using jpeg() without X

2010-07-28 Thread Karl-Dieter Crisman
Something similar happens with png(), I think, if one doesn't compile against certain X headers (for instance on Mac). Is there any resource which describes exactly which graphics devices would work without *any* special options on any OS? I've only been able to find pdf() so far (the second

Re: [R] Help with specifiying random effects in lmer - psychology experiment

2010-07-28 Thread nuala brady
Apologies, not sure why that was so garbled first time! - posting again more simply I want to use lmer for analysis of response time ( error data) from a reaction time experiment, and have a question about specifying the structure of random effects in the model. I am using a repeated

Re: [R] Odp: Data frame modification

2010-07-28 Thread Petr PIKAL
Hi why do you insist on loops. R is not C. If you want to use loops use C or similar programming languages. It is almost always better to apply whole object approach. Kind and clever people already programmed it (sometimes in C ). x-rnorm(20) x[c(10,12,13,17)]-NA x [1] -1.12423790

Re: [R] Glm

2010-07-28 Thread Gray Calhoun
Ana, It's not really clear what you are trying to do. From your description, you aren't estimating anything. The code a - c(1, 0.6, 0.8) x - rnorm(2) y - crossprod(c(1, x), a) generates 'y'; but nothing is estimated. 'y' is going to have the same variance regardless of how many observations

[R] randomisation for matrix

2010-07-28 Thread Knut Krueger
Hi to all, I am looking for a randomisation procedure for a single matrix, including a possibility to set the number of randomisations and the to set the number of row and columns . Knut __ R-help@r-project.org mailing list

Re: [R] How get colnames and rownames in Rcpp method?

2010-07-28 Thread 나여나
Hi all, How get colnames and rownames in Rcpp method? attecthed file : RGui.exe capture my work environment : R version : 2.11.1 OS : WinXP Pro sp3 Thanks and best regards. Young-Ju, Park from Korea [1][rKWLzcpt.zNp8gmPEwGJCA00]

Re: [R] Tinn-R related problem

2010-07-28 Thread Knut Krueger
ForestStats schrieb: Hello, I too am having this problem. Some two minutes ago all was well then all of a sudden I cannot backspace or delete or use arrows etc.. there is a special Tinn-R forum: http://sourceforge.net/projects/tinn-r/forums Kind Regards Knut

Re: [R] Installing the Zoo Library.

2010-07-28 Thread Rnoobie
There is no problems getting zoo to install correctly on my windows 7 box, but I can't get it happening on linux (ubuntu) here is the latest issue again... install.packages(zoo_1.6-4.tar.gz, repos = NULL ); Warning in install.packages(zoo_1.6-4.tar.gz, repos = NULL) : argument 'lib'

Re: [R] fisher's posthock test or fisher's combination test

2010-07-28 Thread Knut Krueger
I was looking for: fisher.comb - function (pvalues) { df=length(pvalues) ch2=(-2*sum(log(pvalues))) return pchisq(ch2, df=df, lower.tail=FALSE) } http://en.wikipedia.org/wiki/Fisher%27s_method for the second part: the calculation of the p-value from the result of fischer combination test .

[R] error: arguments imply differing number

2010-07-28 Thread jd6688
mydata - read.table(textConnection( Id cat1 location item_values p-values sequence a111 1 3002737 100 0.01 1 a112 1 3017821 102 0.05 2 a113 2 3027730 103 0.02 3 a114 2 3036220 104 0.04 4 a115 1 3053984

[R] [R-pkgs] IPSUR-1.0 is on CRAN, plus update to RcmdrPlugin.IPSUR

2010-07-28 Thread G. Jay Kerns
IPSUR-1.0 is making its way through CRAN. It is a snapshot of the development version of the following textbook: Title: Introduction to Probability and Statistics using R, First Edition ISBN: 978-0-557-24979-4 Publisher: me The book is targeted for an undergraduate course in probability and

Re: [R] T and F (was: Optimization problem with nonlinear constraint)

2010-07-28 Thread Ravi Varadhan
Hi Patrick, Actually, I feel just the opposite, i.e. it is not a good idea to use `T' for `TRUE'. I have been snared by this trap many a times in my early days with S-Plus and R. It is a good practice to use unabbreviated values. Best, Ravi. -Original Message- From:

Re: [R] memory problem for scatterplot using ggplot

2010-07-28 Thread Brandon Hurr
It was my understanding that R wasn't really the best thing for absolutely huge datasets. 17.5 million points would probably fall under the category of absolutely huge. I'm on a little netbook right now (atom/R32) and it failed, but I'll try it on my macbookPro/R64 later and see if it's able to

Re: [R] How to point a column of dataframe by a character

2010-07-28 Thread Gabor Grothendieck
On Wed, Jul 28, 2010 at 8:59 AM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi Tony, I am sure there are other ways, but I would create formula objects and then pass them to lm().  Here's an example: mydata - data.frame(Y = 1:10, X1 = 11:20, X2 = 21:30) my.names - names(mydata)[-1] for(i

[R] Beginner stucked with raster + geoR package.

2010-07-28 Thread Alaios
Hello everyone. I am trying to build up understanding in R by trying to develop just some simple scenarios. I would like to explain you what I am trying to do and what I did so far. I would like to put inside a RasterLayer (raster package) a Gaussian field (for given covariance) using grf

Re: [R] [Rd] R CMD build wiped my computer

2010-07-28 Thread Jarrod Hadfield
Hi Marc, Thanks for the info on recovery - most of it can pieced together from backups but a quick, cheap and easy method of recovery would have been nicer. My main concern is that this could happen again and that the bug is not limited to R 2.9. I would think that an accidental carriage

Re: [R] randomisation for matrix

2010-07-28 Thread Gray Calhoun
Hi Knut, I think you're going to have to be more specific. The code matrix(rnorm(25), 5, 5) generates a random 5 by 5 matrix. If you need specific distributions, search through the helpfiles using help.search or RSiteSearch. --Gray On Wed, Jul 28, 2010 at 7:51 AM, Knut Krueger

Re: [R] memory problem for scatterplot using ggplot

2010-07-28 Thread Mark Connolly
On 07/28/2010 06:13 AM, Edwin Husni Sutanudjaja wrote: Dear all, I have a memory problem in making a scatter plot of my 17.5 million-pair datasets. My intention to use the ggplot package and use the bin2d. Please find the attached script for more details. Could somebody please give me any

Re: [R] How get colnames and rownames in Rcpp method?

2010-07-28 Thread Romain Francois
Hi, This is not the appropriate list for questions about Rcpp. See the Rcpp-devel mailing list, but first please think about a reproducible example. Romain Le 28/07/10 14:11, 나여나 a écrit : Hi all, How get colnames and rownames in Rcpp method? attecthed file : RGui.exe capture

Re: [R] Optimization problem with nonlinear constraint

2010-07-28 Thread Hans W Borchers
Uli Kleinwechter u.kleinwechter at uni-hohenheim.de writes: Dear Ravi, As I've already written to you, the problem indeed is to find a solution to the transcendental equation y = x * T^(x-1), given y and T and the optimization problem below only a workaround. I don't think

Re: [R] [Rd] R CMD build wiped my computer

2010-07-28 Thread Duncan Murdoch
On 28/07/2010 10:01 AM, Jarrod Hadfield wrote: Hi Marc, Thanks for the info on recovery - most of it can pieced together from backups but a quick, cheap and easy method of recovery would have been nicer. My main concern is that this could happen again and that the bug is not limited to

Re: [R] Optimization problem with nonlinear constraint

2010-07-28 Thread Ravi Varadhan
Very nice, Hans! I didn't know of the existence of Lambert W function (a.k.a Omega function) before. I didn't know that it occurs in the solution of exponential decay with delay: dy/dy = a * y(t - 1). Apparently it is more than 250 years old! Thanks, Ravi. -Original Message- From:

Re: [R] Optimization problem with nonlinear constraint

2010-07-28 Thread Ravi Varadhan
For those interested in esoteric of special functions, here is a nice reference on the Lambert W function: http://www.cs.uwaterloo.ca/research/tr/1993/03/W.pdf Ravi. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Hans W Borchers

Re: [R] error: arguments imply differing number

2010-07-28 Thread Jonathan Christensen
Hi, Thanks for including code and data so that we could reproduce what you're doing. Your problem is that you tell ddply to split the dataset by runNumber and cat1, which results in 4 groups. ddply then applies my.summary() to these four groups. One of these groups (cat1 = 1 and runNumber=1) has

[R] columns mapping

2010-07-28 Thread jd6688
DF1 name OTHER ABC O KKK O QQQ O DDD O PPP O DF2 name ABC KKK DDD If the names in df1 resides in df2, then add the mapped name to df1 as a separate column, for instance mappedColumn the output should be: DF1 name OTHER mappedColumn ABCOABC KKKO KKK QQQ

[R] Axes=F and plotting dual y axes

2010-07-28 Thread Johnson, Cedrick W.
Howdy. Been running into a bit of trouble with plotting. Seems that axes=F is not working. Whenever I plot (either a dataframe or xts/zoo series) and I set axes=F along with xlab/ylab= I still get the default axes printed in my chart. Consider this: #Create some sample data, both 50 units of

Re: [R] strange error : isS4(x) in gamm function (mgcv package). Variable in data-frame not recognized???

2010-07-28 Thread Joris Meys
Follow up: I finally succeeded to more or less reproduce the error. The origin lied in the fact that I accidently loaded a function while being in browser mode for debugging that function. So something went very much wrong with the namespaces. Teaches me right... Cheers Joris On Wed, Jul 28,

Re: [R] UseR! 2010 - my impressions

2010-07-28 Thread Uwe Ligges
Ravi, you are so right, we had the opportunity to attend an excellent and extremely well organized conference. Congratulation to Kate and the whole team at the NIST!!! Uwe ps. Thanks for starting the thread - it is too easy to forget about these well deserved thanks when we are back in

Re: [R] columns mapping

2010-07-28 Thread Wu Gong
Hi, please try ?merge DF2$mappedColumn - DF2$name merge(DF1,DF2,all.x=T,sort=F) - A R learner. -- View this message in context: http://r.789695.n4.nabble.com/columns-mapping-tp2305213p2305250.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Axes=F and plotting dual y axes

2010-07-28 Thread Ben Bolker
Johnson, Cedrick W. cedrick at cedrickjohnson.com writes: Howdy. Been running into a bit of trouble with plotting. Seems that axes=F is not working. Whenever I plot (either a dataframe or xts/zoo series) and I set axes=F along with xlab/ylab= I still get the default axes printed in my

Re: [R] problem with building package on CRAN

2010-07-28 Thread Uwe Ligges
Package should be online now (or within 24 hours at least). Apologies for the noise, and please just ask me directly in case you get my messages - no need to flood R-help even more Best wishes, Uwe On 26.07.2010 23:25, Romain Francois wrote: Hello, (ccing Rcpp-devel too because this

Re: [R] memory problem for scatterplot using ggplot

2010-07-28 Thread David Winsemius
On Jul 28, 2010, at 9:53 AM, Brandon Hurr wrote: It was my understanding that R wasn't really the best thing for absolutely huge datasets. 17.5 million points would probably fall under the category of absolutely huge. I'm on a little netbook right now (atom/R32) and it failed, but I'll

Re: [R] Axes=F and plotting dual y axes

2010-07-28 Thread D Kelly O'Day
Cedrick I used this script to produce a simple chart with no axes: series2 = c(1:50) series1 = rep(25:74) plot(series1, series2, main=Woo, col=red, xlab=, ylab=, axes=F, type=l) Works fine on Windows XP using R 2.11.1. -- View this message in context:

Re: [R] Introductory statistics and introduction to R

2010-07-28 Thread G. Jay Kerns
Dear Marsh, On Tue, Jul 27, 2010 at 10:46 AM, Marsh Feldman marshfeld...@cox.net wrote: Hi, I have a bright, diligent second-year graduate student who wants to learn statistics and R and will, in effect, be taking a tutorial from me on these subjects. (If you've seen some of my questions on

Re: [R] finding the next highest number in an array

2010-07-28 Thread Bert Gunter
... just a note: you don't have to first sort the vector to do this: x - sample(1:7) x [1] 3 5 7 6 2 4 1 which(x==min(x[x4])) [1] 2 Bert Gunter Genentech Nonclinical Biostatistics On Wed, Jul 28, 2010 at 3:12 AM, Raghu r.raghura...@gmail.com wrote: Hi I have a sorted array ( in

Re: [R] Axes=F and plotting dual y axes

2010-07-28 Thread Johnson, Cedrick W.
That worked. Stupid me forgot that I had the stock ticker 'F' assigned in my workspace. Well.. guess I'll hit myself with a 2x4 now.. Thanks for your help guys.. -c On 07/28/2010 12:37 PM, Ben Bolker wrote: Johnson, Cedrick W.cedrickat cedrickjohnson.com writes: Howdy. Been running

[R] R CMD build wiped my computer

2010-07-28 Thread R P Herrold
On Wed, 28 Jul 2010, Jarrod Hadfield wrote: My main concern is that this could happen again and that the bug is not limited to R 2.9. I would think that an accidental carriage return at the end of a file name (even a temporary one) would be a reasonably common phenomenon (I'm surprised I

Re: [R] Introductory statistics and introduction to R

2010-07-28 Thread Matthew Keller
Hi Marsh, I taught an intro to R course and have posted all the materials up on the web: http://psych-swiki.colorado.edu:8080/LearnR. Most learning in R comes from doing, not reading, and that's how I structured my course. All the lectures/HWs can be done individually, and the keys are there to

Re: [R] hatching posibility in Panel.Polygon

2010-07-28 Thread Greg Snow
Tufte discusses hash lines in his book The Visual Display of Quantitative Information and does a better job of it than I can. The short version is that the hashing can actually produce optical illusion effects that distort the information. (and often don't copy well either). Printing and

Re: [R] columns mapping

2010-07-28 Thread jd6688
Thank you so much. it worked as expected. you have been great help -- View this message in context: http://r.789695.n4.nabble.com/columns-mapping-tp2305213p2305401.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

Re: [R] Introductory statistics and introduction to R

2010-07-28 Thread Gabor Grothendieck
On Tue, Jul 27, 2010 at 10:46 AM, Marsh Feldman marshfeld...@cox.net wrote: Hi, I have a bright, diligent second-year graduate student who wants to learn statistics and R and will, in effect, be taking a tutorial from me on these subjects. (If you've seen some of my questions on this list,

[R] Out-of-sample predictions with boosting model

2010-07-28 Thread Travis Berge
Hi UseRs - I am new to R, and could use some help making out-of-sample predictions using a boosting model (the mboost command). The issue is complicated by the fact that I have panel data (time by country), and am estimating the model separately for each country. FYI, this is monthly data and I

[R] how to code it??

2010-07-28 Thread Raghu
Hi I have say a large vector of 3500 digits. Initially the digits are 0s and 1s. I need to check for a rule to change some of the 0s to -1s in this vector. But once I change a 0 to -1 then I need to start applying the rule to change the next 0 only after I see the next 1 in the vector. Say for

Re: [R] Random Forest - Strata

2010-07-28 Thread Coll
Max, Thanks. Yes what you said is exactly I am looking for, i.e. the first tree fits using data from sites AB, then predicts on C (and so on). Does that means if I : 1. pass this list as index into trainControl tmpSiteList [[1]] [1] 1 2 3 4 5 6 7 [[2]] [1] 1 2 3 8 9 10 [[3]] [1] 4 5

[R] Odd crash with tcl/tk

2010-07-28 Thread AndrewPage
Hi, Recently, I've been trying to use packages in R that require loading the Tcl/Tk interface. However, I get a strange result and a crash that I haven't been able to find discussion about on these boards (or any others). When I enter library(tcltk), it reads Loading Tcl/Tk interface ... , but

Re: [R] how to generate a random data from a empirical distribition

2010-07-28 Thread xin wei
hi, Frank: how can we make sure the randomly sampled data follow the same distribution as the original dataset? i assume each data point has the same prabability to be selected in a simple random sampling scheme. thanks -- View this message in context:

Re: [R] randomisation for matrix

2010-07-28 Thread Knut Krueger
Gray Calhoun schrieb: Hi Knut, I think you're going to have to be more specific. The code matrix(rnorm(25), 5, 5) I found the answer there is a generator seed field in Ucinet, I do not know why its possible to set the random generator starting point, by hand and I assume the generator

[R] Help Creating a Stacked Bar Chart with Color Coding

2010-07-28 Thread Majonu
I have a data set of the following form: Johnson 4 Smith4 Smith2 Smith3 Garcia 1 Garcia 4 Rodriguez 2 Adams 2 Adams 3 Adams 4 Turner 4 Turner 3 And I'd like to create a stacked bar chart that has scores on the x-axis

[R] error in f(x,...)

2010-07-28 Thread Nathalie Gimenes
Dear all, I tried once to create one variable called bip such that: bip - cip + (1/f(cip))*fi(f,cip) And this was working. But now, doing the same thing I did before, the software shows me the following message: Error in f(x, ...) : unused argument(s) (subdivision = 2000) I have the variable

Re: [R] Odd crash with tcl/tk

2010-07-28 Thread Gabor Grothendieck
On Wed, Jul 28, 2010 at 10:06 AM, AndrewPage savejar...@yahoo.com wrote: Hi, Recently, I've been trying to use packages in R that require loading the Tcl/Tk interface.  However, I get a strange result and a crash that I haven't been able to find discussion about on these boards (or any

Re: [R] how to generate a random data from a empirical distribition

2010-07-28 Thread Frank Harrell
This is true by definition. Read about the bootstrap which may give you some good background information. Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University On Wed, 28 Jul 2010, xin wei wrote: hi,

[R] install packages in Windows Vista

2010-07-28 Thread Santosh
Dear R experts... I would really appreciate your suggestions in installing a package in Windows Vista... I am unable to install a package on a windows vista based computer, in spite of running it as an administrator. The package xpose4.2.1 is available from

Re: [R] question about SVM in e1071

2010-07-28 Thread Jack Luo
Pau, Sorry for getting back to you for this again. I am getting confused about your interpretation of 3). It is obvious from your code that increasing C results in* smaller *number of SVs, this seems to contradict with your interpretation * Increasing the value of C (...) forces the creation of

Re: [R] how to code it??

2010-07-28 Thread Matt Shotwell
If I take your meaning correctly, you want something like this. x - c(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, + 1) easy - function(x) { + state - 0 + for (i in 1:length(x)) { + if (x[i] == 0) + x[i] - state + state - 0 + if (x[i] ==

Re: [R] Documenting different OO-aproaches in R as a package?

2010-07-28 Thread Martin Maechler
s == schuster m...@friedrich-schuster.de on Tue, 27 Jul 2010 22:17:09 +0200 writes: s Hello, s I see some people including myself confused by the s different object-oriented approaches in R (S3, S4, OOP, s R.oo etc.). s Would it be ok to collect examples and

Re: [R] how to code it??

2010-07-28 Thread Henrique Dallazuanna
You've tried: diff(c(0, x)) ? On Wed, Jul 28, 2010 at 3:10 PM, Raghu r.raghura...@gmail.com wrote: Hi I have say a large vector of 3500 digits. Initially the digits are 0s and 1s. I need to check for a rule to change some of the 0s to -1s in this vector. But once I change a 0 to -1 then I

Re: [R] [Rd] R CMD build wiped my computer

2010-07-28 Thread Bos, Roger
Ubuntu also uses ~ as a backup file syntax, but Ubuntu has a trash can where deleted files are located, so it would be easy to restore them. I would be surprised if Fedora didn't also have a trash can. -Original Message- From: r-help-boun...@r-project.org

  1   2   >