Re: [R] typo in contrast package's vignettes

2010-02-03 Thread Petr PIKAL
Hi I was only following your discussion and I wonder where you did get mentioned PDF. Max's email is on its first page. Version 0.12 Date 2009-10-15 Title A collection of contrast methods Author Max Kuhn, contributions from Steve Weston, Jed Wing and James Forester Maintainer Max Kuhn Depends

Re: [R] problems with SPC charts in R

2010-02-03 Thread vikrant
ok. I will give the example for which i m getting this error. The data for plotting R chart and S chart is very huge. SO i will take example for plotting C chart. Data is a follows :- sample D sizetrial 1 11 1000TRUE 2 11 1000TRUE 3 13 1000T

Re: [R] problems with SPC charts in R

2010-02-03 Thread Bart Joosen
Please add an reproducible example, so that we can see where it goes wrong. Maybe the error is raised by faulted data? Bart -- View this message in context: http://n4.nabble.com/problems-with-SPC-charts-in-R-tp1467901p1468441.html Sent from the R help mailing list archive at Nabble.com. __

[R] problems with SPC charts in R

2010-02-03 Thread vikrant
Hi all, I am using SPC techniques of plotting Xbar, R, S, P and C charts in R.For this I am using qcc package in R and also using the following document for reference. http://www.stat.unipg.it/~luca/Rnews_2004-1-pag11-17.pdf But while plotting S chart, R chartchart and also C chart I am getting

[R] How to read HTML or TEXT file with tm package

2010-02-03 Thread Lica Oka
Hi, everyone! I'm a novice at R with tm package. So I need your help!! I'd like to analyze some German texts using tm package for my papers. But somehow, I could not use it well. Now I'm using R ver.2.10.1 and tm package ver.0.5-2 on WindowsXP and also MacOS X 10.6 (snow leopard). Input commands

[R] Change point analysis package bcp() reference?

2010-02-03 Thread Peng Yu
bcp()'s help says it implements the paper by Barry and Hartigan (1993). But it has 4 other citations which are later than 1993. Could somebody who have experience on this function let me know why these 4 later citations matters to this particular function? Or these citations are just for the topic

Re: [R] typo in contrast package's vignettes

2010-02-03 Thread Peng Yu
On Wed, Feb 3, 2010 at 4:53 PM, David Scott wrote: > Peng Yu wrote: >> >> On Wed, Feb 3, 2010 at 3:48 PM, Max Kuhn wrote: >>> >>> Wait, what were we talking about? Right...it is a typo. It should be >>> c'beta in the numerator. >>> >>> Peng: As the package maintainer, you really should send me a

Re: [R] Creating a table with median for multiple variables

2010-02-03 Thread Jim Lemon
On 02/04/2010 10:55 AM, billy_no_mates wrote: I need to create a table using median "votes" by "party" I have a large dataset with 7 different parties and 464 different vote numbers. Any suggestions? Hi billy_no_mates, It's a bit hard to work out what you want with just the above. Are the v

Re: [R] Creating a table with median for multiple variables

2010-02-03 Thread Peter Alspach
?tapply ?aggregate should get you started Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of billy_no_mates > Sent: Thursday, 4 February 2010 12:55 p.m. > To: r-help@r-project.org > Subject: [R] Creating a t

[R] Creating a table with median for multiple variables

2010-02-03 Thread billy_no_mates
I need to create a table using median "votes" by "party" I have a large dataset with 7 different parties and 464 different vote numbers. Any suggestions? -- View this message in context: http://n4.nabble.com/Creating-a-table-with-median-for-multiple-variables-tp1461994p1461994.html Sent from

[R] Changing an unordered factor into an ordered factor

2010-02-03 Thread Mathew, Abraham T
I'm trying to change an unordered factor into an ordered factor: data96$RV961327 <- data96$V961327 data96$RV961327[data96$V961327 %in% levels(data96$V961327)[4]] <- NA data96$RV961327[data96$V961327 %in% levels(data96$V961327)[5]] <- NA data96$RV961327 <- factor(data96$RV961327) attributes(data

Re: [R] What are Type II or III contrast? (contrast() in contrast package)

2010-02-03 Thread Emmanuel Charpentier
Le mercredi 03 février 2010 à 09:23 -0600, Peng Yu a écrit : > On Wed, Feb 3, 2010 at 2:12 AM, Emmanuel Charpentier > wrote: > > Le mercredi 03 février 2010 à 00:01 -0500, David Winsemius a écrit : > >> On Feb 2, 2010, at 11:38 PM, Peng Yu wrote: > >> > >> > ?contrast in the contrast package gives

Re: [R] How to choose "seed" in set.seed(seed, ...)?

2010-02-03 Thread milton ruser
Hi Michael, Experts will answer you better than me, but IMHO there is no "best practices". In general you deal with set.seed() when you want that others (or yourself) reproduce the same sequence of random numbers generation as you run on a moment. Best regards milton On Wed, Feb 3, 2010 at 1

[R] How to choose "seed" in set.seed(seed, ...)?

2010-02-03 Thread Michael Hannon
Greetings. I understand that to generate distinct sequences of random numbers in R one can initialize the calculation of each sequence by calling the set.seed() function with a distinct value for "seed" the (integer) first argument to the function. I'd like to know if there are any guidelines or

Re: [R] Calculating subsets "on the fly" with ddply

2010-02-03 Thread hadley wickham
> The ddply invocation would look like so: > > R> my <- ddply(iris, .(w=Sepal.Length < 5.5, Species), transform, > grmean=mean(Petal.Width)) > R> head(my) >      w Sepal.Length Sepal.Width Petal.Length Petal.Width    Species > grmean > 1 FALSE          5.8         4.0          1.2         0.2     s

[R] create zip archive in R

2010-02-03 Thread mkna005 mkna005
Hello all! I was wondering if it is possible to create a zip archive within R and add files to it? I know it is possible to unzip files but is it possible the other way round? Thanks in advance Christoph __ R-help@r-project.org mailing list https://sta

Re: [R] svm

2010-02-03 Thread Achim Zeileis
On Thu, 4 Feb 2010, Amy Hessen wrote: Hi Steve, Thank you very much for your reply. Could you please guide me to any helpful reference to learn about the other non-linear regression algorithms available in R language and about how I use any of them? There are a few papers in the Journa

Re: [R] svm

2010-02-03 Thread Amy Hessen
Hi Steve, Thank you very much for your reply. Could you please guide me to any helpful reference to learn about the other non-linear regression algorithms available in R language and about how I use any of them? Cheers,Amyate: Wed, 3 Feb 2010 10:59:27 -0500 > Subject: Re: [R] svm > From

Re: [R] accessing column and row numbers inside splom in lattice

2010-02-03 Thread Roger Levy
Many thanks, Dieter, that is a useful bit of information! Best Roger On Jan 31, 2010, at 2:03 AM, Dieter Menne wrote: Roger Levy-2 wrote: When using splom() in the lattice package, I would like to be able to access the row and column number of each individual pairs plot , I found this

Re: [R] Problem accessing help files

2010-02-03 Thread Duncan Murdoch
On 03/02/2010 7:17 PM, Jonathan wrote: Duncan: I suspect that you're right about the file association having been the issue. .html files were not associated with either browser. However, I fixed that by associating .html files with Firefox, but R still gave me the same error! If that was th

[R] Help....package "GPLOTS" will not install. Linux

2010-02-03 Thread Laurence Cooke
Hello, Apologies in advance if this is not the appropriate forum for this post. My problem is I'm not able to install the package "GPLOTS". Below are the outputs for the commands: sessionInfo() and install.packages("gplots",dependencies=TRUE). It seems the package "GDATA" is part of the problem

Re: [R] legend help

2010-02-03 Thread Dennis Murphy
Hi: Try this, using the parText function given below: # Generate the x's, vectors of rate and shape, densities and matplot x <- 5 * ppoints(100) rate <- rep(c(2, 4), each = 3) shape <- rep(c(1, 3, 5), 2) gamden <- matrix(NA, nrow = 6, ncol = 100) for(i in 1:6) gamden[i, ] <- dgamma(x, rate[i], sh

Re: [R] Problem accessing help files

2010-02-03 Thread Jonathan
Duncan: I suspect that you're right about the file association having been the issue. .html files were not associated with either browser. However, I fixed that by associating .html files with Firefox, but R still gave me the same error! If that was the problem, R didn't realize the associati

[R] legend help

2010-02-03 Thread casperyc
i=1 for(rate in c(2,4) ){ for(shape in c(1,3,5) ){ curve(dgamma(x,rate,shape),xlim=c(0,3),ylab="",col=i,lty=i,add=T) i=i+1 } } How can I add some legend to represent these lines? i.e. the legend is displayed as col=1 lty=1 lambda=2 theta=1 col=2 lty=2 lambda=2 the

Re: [R] pickle in R

2010-02-03 Thread Gábor Csárdi
On Thu, Feb 4, 2010 at 12:20 AM, Frank E Harrell Jr wrote: > Gábor Csárdi wrote: >> >> Perhaps you are looking for ?serialize. >> >> Best, >> Gábor > > Wouldn't save( ) and load( ) be faster and result in much smaller files? Depends, functionality is not the same, I think. 'serialize' can simply

Re: [R] Additional field data collection

2010-02-03 Thread David Winsemius
If you really needed to automate the process, you could write a function that looked for divisions on the x-axis where the function "turned". I am not sure whether approxfun() realizations can be differentiated with deriv(), but some sort application of diff and rle would probably let you s

Re: [R] pickle in R

2010-02-03 Thread Frank E Harrell Jr
Gábor Csárdi wrote: Perhaps you are looking for ?serialize. Best, Gábor Wouldn't save( ) and load( ) be faster and result in much smaller files? Frank On Thu, Feb 4, 2010 at 12:09 AM, mkna005 mkna005 wrote: Hello all! I was wondering if there is a way to pickle an R object into a file li

Re: [R] lattice key inside panel

2010-02-03 Thread Santosh
Dear R-experts.. Thanks to Dennis and Deepayan for the valuable tips; I used a work-around to indicate grouping variable inside a panel of a lattice. I am yet to get the legends properly. Is "subscripts" needed for generating the legends inside a lattice panel? The work-around R code for the earl

[R] Jankowsky conservative analysis

2010-02-03 Thread Peng Yu
pe...@morgan:~/projects/APP_Hippo_Exon_Jankowsky/analysis/pvalue_contrast_table.RData __ 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 provi

Re: [R] pickle in R

2010-02-03 Thread Steve Lianoglou
Hi, On Wed, Feb 3, 2010 at 6:11 PM, Rolf Turner wrote: > > On 4/02/2010, at 12:09 PM, mkna005 mkna005 wrote: > >> Hello all! >> I was wondering if there is a way to pickle an R object into a file >> like it is possible in python? Such as you have an complicated R >> object(not a dataframe) , you

Re: [R] pickle in R

2010-02-03 Thread Gábor Csárdi
Perhaps you are looking for ?serialize. Best, Gábor On Thu, Feb 4, 2010 at 12:09 AM, mkna005 mkna005 wrote: > Hello all! > I was wondering if there is a way to pickle an R object into a file > like it is possible in python? Such as you have an complicated R > object(not a dataframe) , you use a

Re: [R] Interactively editing point labels in a graph

2010-02-03 Thread Liviu Andronic
On 2/3/10, trece por ciento wrote: > 2. Can playwith draw ellipses or any other figure around selected points? > The closest I can find is drawing a rectangle. See the Tools menu. > (For the first question it seems my fault, but I don't know how to fix it) > I don't think so (I can confirm the

Re: [R] pickle in R

2010-02-03 Thread Rolf Turner
On 4/02/2010, at 12:09 PM, mkna005 mkna005 wrote: > Hello all! > I was wondering if there is a way to pickle an R object into a file > like it is possible in python? Such as you have an complicated R > object(not a dataframe) , you use a function to write it to a file and > than you have a functi

[R] pickle in R

2010-02-03 Thread mkna005 mkna005
Hello all! I was wondering if there is a way to pickle an R object into a file like it is possible in python? Such as you have an complicated R object(not a dataframe) , you use a function to write it to a file and than you have a function where you can retrieve the object from that file later on.

Re: [R] Additional field data collection

2010-02-03 Thread stephen sefick
Yeah, I believe so. On Wed, Feb 3, 2010 at 4:53 PM, David Winsemius wrote: > > On Feb 3, 2010, at 5:44 PM, stephen sefick wrote: > >> 39 for right now >> >> Which, now that I look at it, doesn't seem like that many stations.  I >> guess I am looking for a general solution because I will also have

Re: [R] typo in contrast package's vignettes

2010-02-03 Thread David Scott
Peng Yu wrote: On Wed, Feb 3, 2010 at 3:48 PM, Max Kuhn wrote: Wait, what were we talking about? Right...it is a typo. It should be c'beta in the numerator. Peng: As the package maintainer, you really should send me a quick email about it instead of posting to the list. Let's not waste the ba

Re: [R] Problem accessing help files

2010-02-03 Thread Duncan Murdoch
On 03/02/2010 5:14 PM, Jonathan wrote: Rich: Both IE and Firefox are unable to find the link you supplied. However, that's only because I've restarted my R session since I pasted the error output (and it appears that each time I restart R, the URL is slightly different). This time, I get:

Re: [R] Additional field data collection

2010-02-03 Thread David Winsemius
On Feb 3, 2010, at 5:44 PM, stephen sefick wrote: 39 for right now Which, now that I look at it, doesn't seem like that many stations. I guess I am looking for a general solution because I will also have to do a similar thing for another analysis... so 36 more... grand total 72. So manageab

Re: [R] Interactively editing point labels in a graph

2010-02-03 Thread Felix Andrews
For your situation, perhaps the best option is to save the plot in a vector format like WMF, PDF or SVG, and open it with an external editor. Inkscape is a good one. On 4 February 2010 06:46, trece por ciento wrote: > Thanks, Liviu > In a first look it seems OK. Two questions: > 1. Playwith acce

Re: [R] Additional field data collection

2010-02-03 Thread stephen sefick
39 for right now Which, now that I look at it, doesn't seem like that many stations. I guess I am looking for a general solution because I will also have to do a similar thing for another analysis... so 36 more... grand total 72. Stephen On Wed, Feb 3, 2010 at 4:14 PM, David Winsemius wrote: >

Re: [R] typo in contrast package's vignettes

2010-02-03 Thread Peng Yu
On Wed, Feb 3, 2010 at 3:48 PM, Max Kuhn wrote: > Wait, what were we talking about? Right...it is a typo. It should be > c'beta in the numerator. > > Peng: As the package maintainer, you really should send me a quick > email about it instead of posting to the list. > > Let's not waste the bandwidt

Re: [R] Problem accessing help files

2010-02-03 Thread Marc Schwartz
On Feb 3, 2010, at 4:00 PM, RICHARD M. HEIBERGER wrote: > If you paste > > > http://127.0.0.1:12300/library/base/html/sum.html > > > directly into an IE window, will it find it? You need to do that > after the attempt fails > in order to get the right port number for the current instance. T

Re: [R] Problem accessing help files

2010-02-03 Thread Jonathan
Rich: Both IE and Firefox are unable to find the link you supplied. However, that's only because I've restarted my R session since I pasted the error output (and it appears that each time I restart R, the URL is slightly different). This time, I get: > ?sum starting httpd help server ... don

Re: [R] Additional field data collection

2010-02-03 Thread David Winsemius
On Feb 3, 2010, at 3:36 PM, stephen sefick wrote: This is a subset of a much larger dataframe. I would like to be able to automate finding the pair of x, y coordinates where the line crosses zero agian x <- (structure(list(bankfull_depths_m = c(0, 0.17, 0.38, 0.37, 0.36, 0.39, 0.47, 0.48, 0.1

[R] Calculating subsets "on the fly" with ddply

2010-02-03 Thread Steve Lianoglou
Hi, [I sent this to the plyr mailing list (late) last night, but it seems to be lost in the moderation queue, so here's a shot to the broadeR community] Apologies in advance for being more verbose than necessary, but I'm not even sure how to ask this question in the context of plyr, so ... here g

Re: [R] Problem accessing help files

2010-02-03 Thread RICHARD M. HEIBERGER
If you paste http://127.0.0.1:12300/library/base/html/sum.html directly into an IE window, will it find it? You need to do that after the attempt fails in order to get the right port number for the current instance. __ R-help@r-project.org mailing l

Re: [R] Header in read.table() function

2010-02-03 Thread Erik Iverson
Paul Evans wrote: Hi All, I hadn't realized the 'a-1' will open such a can of worms! Actually, the header elements will look something like 'ABCD-002-234-01D' (instead of 'a-1'). I get the files from somwhere else, so I cannot change how the input file is. Should I go ahead with the check.na

Re: [R] Header in read.table() function

2010-02-03 Thread Marc Schwartz
My recommendation would be to leave the default behavior in place. With multiple '-' characters in your imported variable (object) names, you are not only asking to get bitten, but are indeed begging the R Gods to throw lightning bolts in your general direction. Using ABCD.002.234.01D and simil

Re: [R] Problem accessing help files

2010-02-03 Thread Jonathan
Thanks for the ideas! Marc: I checked both of my installed browsers (IE8 and Firefox3.5.7), and neither browser shows a proxy having been configured... Any other thoughts? Richard: I tried calling setInternet2(), and received the following output (and the initial problem persists): > setInterne

Re: [R] typo in contrast package's vignettes

2010-02-03 Thread Max Kuhn
Wait, what were we talking about? Right...it is a typo. It should be c'beta in the numerator. Peng: As the package maintainer, you really should send me a quick email about it instead of posting to the list. Let's not waste the bandwidth anymore. Given the number of typos in my documentation, thi

Re: [R] Header in read.table() function

2010-02-03 Thread Paul Evans
Hi All, I hadn't realized the 'a-1' will open such a can of worms! Actually, the header elements will look something like 'ABCD-002-234-01D' (instead of 'a-1'). I get the files from somwhere else, so I cannot change how the input file is. Should I go ahead with the check.names=FALSE option?

Re: [R] typo in contrast package's vignettes

2010-02-03 Thread David Scott
hadley wickham wrote: Really? Where exactly is the loophole in 'If the question relates to a contributed package ... try contacting the package maintainer first.'? How about the general R philosophy that if you dare to mistakenly submit a bug report that turns out to be a "feature", not a bug,

Re: [R] Problem accessing help files

2010-02-03 Thread RICHARD M. HEIBERGER
In addition to Marc's comments, you might want to use setInternet2() I am pretty sure this will get you past a firewall to r-project.org. I think it might also get you access to 127.0.0.1. Access to 127.0.0.1 is not explicitly mentioned in the help file ?setInternet2 Rich __

Re: [R] Header in read.table() function

2010-02-03 Thread Erik Iverson
If you're data.frame had a column named 'a', what should mm$a-1 do? Print out mm$a-1, or subtract 1 from mm$a ? If you want your original matrix back (i.e., object of class matrix), you could just use save/load functions. David found a way to get this in. I read the file in, converted to

Re: [R] Header in read.table() function

2010-02-03 Thread Marc Schwartz
On Feb 3, 2010, at 3:08 PM, Paul Evans wrote: > Hi, > > I wanted to read in a table that had hyphens in the header / column names. > When I read it in however, it replaces the hyphens with a dot. Which > parameter in the read.table function do I need to set to change this > behaviour? > Exampl

Re: [R] Header in read.table() function

2010-02-03 Thread Peter Alspach
Tena koe Paul a-1 is not valid syntax in a name hence the conversion. See ?make.names for more information. You could change the names after importing with read.table; e.g. names(whatever)[2] <- 'a-1' but you may regret it later. HTH . Peter Alspach > -Original Message- > From:

Re: [R] Header in read.table() function

2010-02-03 Thread Erik Iverson
Paul Evans wrote: Hi, I wanted to read in a table that had hyphens in the header / column names. When I read it in however, it replaces the hyphens with a dot. Which parameter in the read.table function do I need to set to change this behaviour? Example code: jm <- matrix(1:4,2,2) rownames(jm)

Re: [R] Problem accessing help files

2010-02-03 Thread Marc Schwartz
On Feb 3, 2010, at 2:46 PM, Jonathan wrote: > Hi; I posted this to the R-help last week, but there was no resolution.. > > Could anybody provide an idea, or alternatively direct me to another > resource that might have ideas? > -- > > I'm running R (ver. 2.10.1; installed as an administrator; ru

Re: [R] Header in read.table() function

2010-02-03 Thread David Winsemius
On Feb 3, 2010, at 4:08 PM, Paul Evans wrote: Hi, I wanted to read in a table that had hyphens in the header / column names. When I read it in however, it replaces the hyphens with a dot. Which parameter in the read.table function do I need to set to change this behaviour? Example code:

[R] Header in read.table() function

2010-02-03 Thread Paul Evans
Hi, I wanted to read in a table that had hyphens in the header / column names. When I read it in however, it replaces the hyphens with a dot. Which parameter in the read.table function do I need to set to change this behaviour? Example code: jm <- matrix(1:4,2,2) rownames(jm) <- c('a','b') colna

[R] Histogram function from lattice package

2010-02-03 Thread anna
Hello everyone, does anyone have an idea of how I display the breakpoints on the x label when using the histogram funtion from lattice? - Anna Lippel -- View this message in context: http://n4.nabble.com/Histogram-function-from-lattice-package-tp1461735p1461735.html Sent from the R help m

Re: [R] Mix Distribution Fit

2010-02-03 Thread Ravi Varadhan
Do you mean "mixture distributions"? If so, packages "mixtools" and "flexmix" might be useful. There are possibly others as well depending on the type of mixtures you are fitting. Ravi. --- Ravi Varadhan, Ph.D. A

[R] Problem accessing help files

2010-02-03 Thread Jonathan
Hi; I posted this to the R-help last week, but there was no resolution.. Could anybody provide an idea, or alternatively direct me to another resource that might have ideas? -- I'm running R (ver. 2.10.1; installed as an administrator; running as an administrator) on Windows 7 64-bit, and R is ha

[R] Additional field data collection

2010-02-03 Thread stephen sefick
This is a subset of a much larger dataframe. I would like to be able to automate finding the pair of x, y coordinates where the line crosses zero agian x <- (structure(list(bankfull_depths_m = c(0, 0.17, 0.38, 0.37, 0.36, 0.39, 0.47, 0.48, 0.19, 0.05, -0.05, -0.09), measurment_num_m = c(0.2, 0.4,

Re: [R] Splitting up rows in a data frame

2010-02-03 Thread Ista Zahn
There is a colsplit() function in the reshape package that will do this very easily. -Ista On Thu, Feb 4, 2010 at 3:41 PM, Tom Wenseleers wrote: > Dear all, > I have the following data frame > goannot=read.table(file="c:\ApisGOannot.txt",colClasses="character",header=TRUE,sep="\t") >        GB_n

[R] Can not p.adjust on the conservative analysis.

2010-02-03 Thread Peng Yu
Hi Chad, There are not many significant transcript clusters after p.adjust. > sum(adjusted_pvalue[,'C-D']<.05) [1] 0 > sum(adjusted_pvalue[,'A-D']<.05) [1] 0 > sum(adjusted_pvalue[,'D-E']<.05) [1] 2 > sum(adjusted_pvalue[,'A-B']<.05) [1] 8 However, there are may TCs that are significant before p

Re: [R] How to flatten a tree (based on list) to a certain depth?

2010-02-03 Thread Steve Lianoglou
On Wed, Feb 3, 2010 at 3:01 PM, Peng Yu wrote: > On Wed, Feb 3, 2010 at 1:47 PM, Bert Gunter wrote: >> -- and you didn't read my reply. > > I did. You said to use a loop. I think flatten a tree to a certain > level shouldn't be done with a loop. Loop is a way used in the > imperative programming

Re: [R] ggplot2/qplot question regarding reducing the no. of x-axis labels

2010-02-03 Thread Thomas Adams
Dennis, Thanks; that's just what I needed! Regards, Tom Dennis Murphy wrote: Hi: ggplot2 works with dates of class date and times of class POSIXct. See scale_x_date(), which is discussed in section 6.4.2 of the ggplot2 book. HTH, Dennis On Wed, Feb 3, 2010 at 11:15 AM, Thomas Adams

Re: [R] What are Type II or III contrast? (contrast() in contrast package)

2010-02-03 Thread Steve Lianoglou
Hi Mitchell, On Wed, Feb 3, 2010 at 10:32 AM, Mitchell Maltenfort wrote: > Thank you. I was already convinced of the value of MASS (drop a hat > and I'll tell you my other list of musts for a stats library) but I > didn't know about the Exegeses. I'm not sure how it happened, but it seems that m

Re: [R] Interactively editing point labels in a graph

2010-02-03 Thread trece por ciento
Thanks, Liviu In a first look it seems OK. Two questions: 1. Playwith accept directly the plots created by the ca package, but it seems unable to identify the point labels For example: data(smoke) smoke ca(smoke) plot(ca(smoke)) playwith(plot(ca(smoke))) Then, if I try to identify a label playwith

Re: [R] How to flatten a tree (based on list) to a certain depth?

2010-02-03 Thread Peng Yu
On Wed, Feb 3, 2010 at 1:47 PM, Bert Gunter wrote: > -- and you didn't read my reply. I did. You said to use a loop. I think flatten a tree to a certain level shouldn't be done with a loop. Loop is a way used in the imperative programming style. Flatten is in the functional programming style. I d

Re: [R] How to flatten a tree (based on list) to a certain depth?

2010-02-03 Thread Steve Lianoglou
On Wed, Feb 3, 2010 at 2:37 PM, Peng Yu wrote: > On Wed, Feb 3, 2010 at 12:29 PM, Steve Lianoglou >> Does `unlist(root, recursive=FALSE)` get you what you want? ... > My example has only 2 levels. > > But my questions is not limited to a particular level. The > nonrecursive version flatten the fi

Re: [R] diagnostic plots

2010-02-03 Thread Felipe Carrillo
Or just click on the "Enter" key to see the following graphic Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA --- On Wed, 2/3/10, jim holtman wrote: > From: jim holtman > Subject: Re: [R] diagnostic plots > To: "Tr

Re: [R] color blending and transparency

2010-02-03 Thread Thomas Lumley
On Wed, 3 Feb 2010, baptiste auguie wrote: Thanks for this complementary information. My head itches slightly when reading about these virtual layers with unidirectional absorption and reflection properties but I guess that's imputable to my personal background as a physicist. It's not unidire

Re: [R] How to flatten a tree (based on list) to a certain depth?

2010-02-03 Thread Peng Yu
On Wed, Feb 3, 2010 at 12:26 PM, Bert Gunter wrote: > RTFM (?unlist -- the "recursive" parameter) > and do it with a loop however many times you like. How do you know that I didn't read the manual? I didn't quite get my question. Please see my response to Steve. > -Original Message- > Fr

Re: [R] How to flatten a tree (based on list) to a certain depth?

2010-02-03 Thread Peng Yu
On Wed, Feb 3, 2010 at 12:29 PM, Steve Lianoglou wrote: > Hi, > > On Wed, Feb 3, 2010 at 1:19 PM, Peng Yu wrote: >> Suppose that I have the following list of lists of frames 'root' >> (let's call it a 'tree' of frames). I want to flatten it to be a list >> of frames. However, if I unlist(root), i

Re: [R] sqlUpdate RODBC

2010-02-03 Thread Bart Joosen
You solved your date column problem? You should make a table with a date column. Instead of adjusting the date setting for this session, you can use the format function of R to adjust the string you are feeding to your db? Bart -- View this message in context: http://n4.nabble.com/sqlUpdate-ROD

Re: [R] ggplot2/qplot question regarding reducing the no. of x-axis labels

2010-02-03 Thread hadley wickham
Hi Thomas, Please provide a reproducible example. The most likely explanation is that after loading your data you haven't converted your "date" variable from a factor into a real date. Hadley On Wed, Feb 3, 2010 at 1:15 PM, Thomas Adams wrote: > All: > > I am using the command: qplot(date,MAE,

[R] ggplot2/qplot question regarding reducing the no. of x-axis labels

2010-02-03 Thread Thomas Adams
All: I am using the command: qplot(date,MAE,data=data,facets=INTERVAL~type) which works fine except that the dates for my date axes are crunched together so much that they are unreadable. I can not find an option that I can set that will automatically reduce the x-axis labels to fit the avail

Re: [R] how to operate a S4 objecti

2010-02-03 Thread David Winsemius
On Feb 3, 2010, at 12:25 PM, Hongbin Zhang wrote: I have a R object which has a value (see below, e.g., the "0.8341875") I like to extract to put into a simple form, e.g., an array. how could I do that? below is the code: library(ROCR) data(ROCR.simple) pred <- prediction( ROCR.simple$p

Re: [R] offlist Re: typo in contrast package's vignettes

2010-02-03 Thread David Winsemius
My apologies to the rest of the list readership. David Winsemius, MD Heritage Laboratories West Hartford, CT __ 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/po

Re: [R] tapply for function taking of >1 argument?

2010-02-03 Thread hadley wickham
> It will of necessity be slower (because there's more machinery underlying > the sqldf package); but I doubt whether it would be noticeably slower than > the native R solution in most practical situations. The same would be true > for plyR's implementation (it relies on the proto package, which sl

[R] how to combine 2 3d scatterplots

2010-02-03 Thread mb622
hi, I am new to R and i have managed to create 2 3d scatterplots with R and Iwaswondering if there is a way to connect them. I was also wondering how i can add arrows to the plot similar to the 2d comment arrows()? Mandy __ R-help@r-project.org m

[R] Splitting up rows in a data frame

2010-02-03 Thread Tom Wenseleers
Dear all, I have the following data frame goannot=read.table(file="c:\ApisGOannot.txt",colClasses="character",header=TRUE,sep="\t") GB_nr evidenceGO_list 1 GB18414-RA apis 0001507, 0003990, 0004104 2 GB1

[R] mboost: how to implement cost-sensitive boosting family

2010-02-03 Thread Tang Yuchun
mboost contains a blackboost method to build tree-based boosting models. I tried to write my own "cost-sensitive" ada family. But obviously my understanding to implement ngradient, loss, and offset functions is not right. I would greatly appreciate if anyone can help me out, or show me how to wr

[R] how to operate a S4 objecti

2010-02-03 Thread Hongbin Zhang
I have a R object which has a value (see below, e.g., the "0.8341875") I like to extract to put into a simple form, e.g., an array. how could I do that? below is the code: > library(ROCR) > data(ROCR.simple) > pred <- prediction( ROCR.simple$predictions, ROCR.simple$labels) > auc <- performance

[R] About the risk code in the fportfolio package

2010-02-03 Thread lai
Hello, I have a problem with fPortfolio recently. I am using below code: Data = read.table("hf.txt",header = TRUE,sep = "") Data = Data[, c("CA", "SS", "EM", "EMN", "ED", "DS", "MS", "RA", "FIA", "GM", "LSE", "MF", "SP500", "NASDAQ", "JPM")] d = as.timeSeries(Data) class(d) Spec = portfolioSpe

Re: [R] color blending and transparency

2010-02-03 Thread baptiste auguie
Thanks for this complementary information. My head itches slightly when reading about these virtual layers with unidirectional absorption and reflection properties but I guess that's imputable to my personal background as a physicist. I still have a few questions, - is this behavior documented? (

Re: [R] tapply for function taking of >1 argument?

2010-02-03 Thread Bert Gunter
My editorial opinion only: It will of necessity be slower (because there's more machinery underlying the sqldf package); but I doubt whether it would be noticeably slower than the native R solution in most practical situations. The same would be true for plyR's implementation (it relies on the pro

Re: [R] How to flatten a tree (based on list) to a certain depth?

2010-02-03 Thread Steve Lianoglou
Hi, On Wed, Feb 3, 2010 at 1:19 PM, Peng Yu wrote: > Suppose that I have the following list of lists of frames 'root' > (let's call it a 'tree' of frames). I want to flatten it to be a list > of frames. However, if I unlist(root), it will flatten the frames as > well. Is there a simply way to fla

Re: [R] tapply for function taking of >1 argument?

2010-02-03 Thread sjaffe
Thanks, I’m actually more comfortable with vector-ish syntax than sql-ish but this is a good thing to keep in mind… I wonder how it compares in performance versus ‘by’ or ‘tapply’ From: Gabor Grothendieck [via R] [mailto:ml-node+1461531-1948782...@n4.nabble.com] Sent: Wednesday, Fe

[R] How to flatten a tree (based on list) to a certain depth?

2010-02-03 Thread Peng Yu
Suppose that I have the following list of lists of frames 'root' (let's call it a 'tree' of frames). I want to flatten it to be a list of frames. However, if I unlist(root), it will flatten the frames as well. Is there a simply way to flatten the tree to certain depth? aframe1=data.frame(x=1:3,y=1

Re: [R] tapply for function taking of >1 argument?

2010-02-03 Thread Gabor Grothendieck
Also try this: > library(sqldf) > DF <- data.frame(data = 1:10, groups = rep(1:2, 5), weights = 1) > sqldf("select groups, sum(data * weights)/sum(weights) 'wtd mean' from DF > group by groups") groups wtd mean 1 15 2 26 On Tue, Feb 2, 2010 at 5:06 PM, sjaffe wrote:

Re: [R] how to combine 2 3d scatterplots in R

2010-02-03 Thread Uwe Ligges
On 03.02.2010 18:38, mb622 wrote: hi, I am new to R and i have managed to create 2 3d scatterplots with R and Iwaswondering if there is a way to connect them. In most cases it is advisable to just add points as shown in the examples of ?scatterplot3d I was also wondering how i can add a

[R] offlist Re: typo in contrast package's vignettes

2010-02-03 Thread David Winsemius
On Feb 3, 2010, at 10:53 AM, Peng Yu wrote: On Wed, Feb 3, 2010 at 8:41 AM, David Winsemius > wrote: On Feb 3, 2010, at 9:28 AM, Peng Yu wrote: On Tue, Feb 2, 2010 at 11:22 PM, David Winsemius > wrote: On Feb 3, 2010, at 12:20 AM, Peng Yu wrote: On Tue, Feb 2, 2010 at 11:14 PM, David Win

Re: [R] graphing help: line runs off top of graph

2010-02-03 Thread David Winsemius
On Feb 3, 2010, at 12:53 PM, Faheem Mitha wrote: Hi, See the files at http://bulldog.duhs.duke.edu/~faheem/R/ Usage is $ Rscript memgraph.R meminfo.csv Output is meminfo.pdf. As you can see, one of the lines (blue) runs off the top of the graph. Can anyone suggest a way to avoid this

[R] What font exactly is tkrplot looking for

2010-02-03 Thread Kevin E. Thorpe
Hello. I am getting an error thrown from tkrplot. It is X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 12 could not be loaded > sessionInfo() R version 2.10.1 Patched (2009-12-29 r50852) i686-pc-linux-gnu locale: [1] LC_CTYPE=en_US LC_NUMERIC=C LC_TIME=e

Re: [R] Error with R CMD check - Packages required but not available:

2010-02-03 Thread Reena Bansal
I tried to bypass R CMD check myPackage2 and did the following R CMD build myPackage2 R CMD INSTALL -l ~/Rlibs myPackage2 and this works, I can load myPackage2 into my R session. Wondering why R CMD check failed and is it not necessary for R CMD check to work before I can build the package? --

Re: [R] svm

2010-02-03 Thread Steve Lianoglou
HI Amy, On Wed, Feb 3, 2010 at 1:56 AM, Amy Hessen wrote: > > Hi Steve, > > Could you please help me in this point?: > > I use SVM of R and I’m trying some datasets from UCI but when I compare the > results of my program( that does not do anything more than calling SVM) with > the RMSE of SVM in

[R] graphing help: line runs off top of graph

2010-02-03 Thread Faheem Mitha
Hi, See the files at http://bulldog.duhs.duke.edu/~faheem/R/ Usage is $ Rscript memgraph.R meminfo.csv Output is meminfo.pdf. As you can see, one of the lines (blue) runs off the top of the graph. Can anyone suggest a way to avoid this happening? Please CC me on any reply. Thanks in advan

  1   2   >