Re: [R] The Origins of R AND CALCULUS

2009-02-04 Thread Mark Difford
Now that is an interesting line, Ajay, and may help to defuse some frayed tempers. Newton, of course, minded very much. And that, really, is the heart of the matter. For R-people (and I am one of them, so I don't use the term pejoratively), clearly, mind very much, too. But only about part of the

Re: [R] Problems in Recommending R

2009-02-04 Thread Friedrich Leisch
> On Wed, 4 Feb 2009 13:05:56 -0600, > hadley wickham (hw) wrote: >> > It might be good to put some mild restriction on the design: >> >> > * should be valid (x)html and css >> >> Of course (although the current page also does not validate without >> errors ;-) >> >> >

Re: [R] How to import HTML and SQL files

2009-02-04 Thread Arup
Thanks a lot..I am trying to pick up R on my own.I will be asking you questions if I am having any problem at any point of time.Thank you. Arup Dieter Menne wrote: > > Arup gmail.com> writes: > >> I can't import any HTML or SQL files into R..:confused: > > Also confused. HTML and SQL are li

[R] The Origins of R AND CALCULUS

2009-02-04 Thread Ajay ohri
An amusing afterthought : What is a rival software (ahem!) was planting this, hoping for a divide between S and R communities.or at the very minimum hoping for some amusement. an assumption or even a pretense of stealing credit is one of the easiest ways of sparking intellectual discord Most users

Re: [R] The Origins of R

2009-02-04 Thread Mark Difford
>> I think that all appeared on January 8 in Vance's blog posting, with a >> comment on it by David M Smith on Jan 9. So those people have -27 days Then there was no need for vituperative comments (not from you, of course): simply point doubters to the right place, as you have done. But Mr. Va

Re: [R] non-numeric argument to binary operator

2009-02-04 Thread Bill.Venables
You are making difficulties where there are none. Consider > x1 <- 1:3 # Why c(...)? > x2 <- 2:4 > x12 <- x1*x2 # element by element product (matlab .* operator) > x12 [1] 2 6 12 > x12 <- outer(x1, x2) # another possibility - outer product > x12 [,1] [,2] [,3] [1,]234

Re: [R] Problems in Recommending R

2009-02-04 Thread Ajay ohri
Quite nice and simple. A thing of beauty is a joy forever.Thanks a lot. Regards, Ajay www.decisionstats.com On Wed, Feb 4, 2009 at 10:13 PM, Duncan Murdoch wrote: > Hadley put together a couple of nice versions of the main Windows download > page cran.r-project.org/bin/windows/base, and I've a

Re: [R] non-numeric argument to binary operator

2009-02-04 Thread markleeds
hi: it's not clear to me what you're trying to do but maybe outer is what you want ? outer(x,y) it takes every value in x and pairs it with every value in y and the default operation is multiply. see details by doing ?outer. On Wed, Feb 4, 2009 at 10:36 PM, cruz wrote: Hi, I compute t

[R] non-numeric argument to binary operator

2009-02-04 Thread cruz
Hi, I compute the value of xi*xj by "for" loops, this how I try: > x1 <- c(1:3) > x2 <- c(2:4) ### to compute x1*x2 > (paste("x", 1, sep = ""))*(paste("x", 2, sep = "")) Error in (paste("x", 1, sep = "")) * (paste("x", 2, sep = "")) : non-numeric argument to binary operator > All comments ar

[R] Inverse of data.ellipse function

2009-02-04 Thread Tom La Bone
The following code generates 85% and 95% bivariate normal confidence ellipses using the data.ellipse routine in the car package. Can anyone suggest a routine in R that will tell me the confidence ellipse that would intersect the green point, or more generally, any specified point on the plot? To

Re: [R] question about running multiple R windows

2009-02-04 Thread milton ruser
Dear George, I think it will depends on the amount of memory that each your session will need. Case each session use a big amount of memory, may be your some of your sessions will get error. I also think that you will not save time if you start several dataset at same time, because windows is windo

Re: [R] overlay plot question

2009-02-04 Thread David Freedman
You could change the second 'plot' to 'points' David Freedman David Kaplan-2 wrote: > > Greetings all, > > I have two logistic plots coming from two calls to plogis. The code is > > .x <- seq(-7.6, 7.6, length=100) > plot(.x, plogis(.x, location=0, scale=1), xlab="x", ylab="Density", > ma

[R] question about running multiple R windows

2009-02-04 Thread George Chen
Hello, I use R on a Microsoft Windows machine. Is it possible for me to open multiple windows of R, have them run the same program but for different data sets, and get accurate results? It takes 8+ hours to run the program so I want to multitask as much as possible. Thanks in advance, George Ch

Re: [R] R command to compare two vectors? [SEC=UNCLASSIFIED]

2009-02-04 Thread Roy Mendelssohn
?setdiff Description Performs set union, intersection, (asymmetric!) difference, equality and membership on two vectors. Note the (asymmetric) on difference. -Roy On Feb 4, 2009, at 5:06 PM, jin...@ga.gov.au wrote: Try this: a_tmp<-c("a", "b", "d", "e", "f", "g", 'h') b_tmp<-c("a", "c"

Re: [R] R command to compare two vectors? [SEC=UNCLASSIFIED]

2009-02-04 Thread Jin.Li
Try this: > a_tmp<-c("a", "b", "d", "e", "f", "g", 'h') > b_tmp<-c("a", "c", "e", "g") > setdiff(b_tmp, a_tmp) [1] "c" > setdiff(a_tmp, b_tmp) [1] "b" "d" "f" "h" Is this a bug? Jin -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Gab

Re: [R] R command to compare two vectors?

2009-02-04 Thread Gabor Grothendieck
Here is one other way: bnota <- setdiff(b_tmp, a_tmp) gives the members of b_tmp that are not in a_tmp so length(bnota) == 0 if all of b_tmp is in a_tmp. On Wed, Feb 4, 2009 at 6:56 PM, Jorge Ivan Velez wrote: > Dear Jason, > Yes, here is one way: > >> a_tmp<-c("a", "b", "c", "d", "e", "f", "g"

Re: [R] R command to compare two vectors?

2009-02-04 Thread Seeliger . Curt
Jason Rupert writes: > By any chance is there an R command to compare two vectors? > > For example, > a_tmp<-c("a", "b", "c", "d", "e", "f", "g", 'h') > b_tmp<-c("a", "c", "e", "g") > > I would like to compare b_tmp against a_tmp to determine if the > members of b_tmp are part of a_tmp. >

Re: [R] R command to compare two vectors?

2009-02-04 Thread Greg Snow
Try: > b_tmp %in% a_tmp You may also want to use the all or any function with the above. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailt

Re: [R] R command to compare two vectors?

2009-02-04 Thread Jorge Ivan Velez
Dear Jason, Yes, here is one way: > a_tmp<-c("a", "b", "c", "d", "e", "f", "g", 'h') > b_tmp<-c("a", "c", "e", "g") > b_tmp %in% a_tmp [1] TRUE TRUE TRUE TRUE > b_tmp[b_tmp%in%a_tmp] [1] "a" "c" "e" "g" > all(b_tmp %in% a_tmp) [1] TRUE Take a look at ?"%in%" and ?all for more information. HTH,

[R] R command to compare two vectors?

2009-02-04 Thread Jason Rupert
By any chance is there an R command to compare two vectors?   For example, a_tmp<-c("a", "b", "c", "d", "e", "f", "g", 'h') b_tmp<-c("a", "c", "e", "g")   I would like to compare b_tmp against a_tmp to determine if the members of b_tmp are part of a_tmp.    I tried  subset(b_tmp, b_tmp==a_tmp)

[R] package ccgarch - dcc.estimation

2009-02-04 Thread Irene Schreiber
Hello, I am trying to model a bivariate time series called 'residuals' as a dcc-garch model. I want to use the function dcc.estimation(a, A, B dcc.para, dvar, model) to estimate the parameters. No matter how I tried to define a, A and B, I always got the message "Error in constrOptim(theta =

Re: [R] lattice key inside panel

2009-02-04 Thread Iago Mosqueira
Deepayan Sarkar wrote: > On Wed, Feb 4, 2009 at 8:21 AM, Iago Mosqueira > wrote: >> Hello, >> >> I am trying to draw a key inside a single panel in a lattice xyplot. The >> panel function uses panel.number() to use a slightly different style for >> one of the panels. Once inside than panel I am u

[R] Sweave and \Sexpr{}

2009-02-04 Thread Felipe Carrillo
Hi: I am trying to create a dynamic latex table using \Sexpr{} but it's not evaluating it. I also tried the example below without Sweave and also fails. I have also copied the Sweave.sty to my working directory but nothing seems to work. Do I need to have certain package in order to run \Sexpr{

Re: [R] Numeric class and sasxport.get

2009-02-04 Thread Frank E Harrell Jr
Sebastien Bihorel wrote: I also realized the flaw after testing the script on various datasets... Following up on your last note: 1- Is that the reason why the class of integer and regular numeric variable is solely "labelled" following sasxport.get? Yes. R gurus might correct me but just cr

[R] "array" and "which" functions

2009-02-04 Thread Kumudan
Hi all, I have a data frame of coordinates, "coord". I need an "output" (array) where the number of rows = number of rows in "coord". I am trying to use the "which" function to extract indices from the coordinates with the following code: d=2 nd=length(coord[,1]) output=list(array) ... ... which(

[R] package ccgarch - dcc.estimation

2009-02-04 Thread Irene Schreiber
Hello, I am trying to model a bivariate time series called 'residuals' as a dcc-garch model. I want to use the function dcc.estimation(a, A, B dcc.para, dvar, model) out of the package ccgarch to estimate the parameters. No matter how I tried to define a, A and B, I always got the message "Er

Re: [R] lattice key inside panel

2009-02-04 Thread Deepayan Sarkar
On Wed, Feb 4, 2009 at 2:13 PM, Iago Mosqueira wrote: > Deepayan Sarkar wrote: >> On Wed, Feb 4, 2009 at 8:21 AM, Iago Mosqueira >> wrote: >>> Hello, >>> >>> I am trying to draw a key inside a single panel in a lattice xyplot. The >>> panel function uses panel.number() to use a slightly differen

[R] overlay plot question

2009-02-04 Thread David Kaplan
Greetings all, I have two logistic plots coming from two calls to plogis. The code is .x <- seq(-7.6, 7.6, length=100) plot(.x, plogis(.x, location=0, scale=1), xlab="x", ylab="Density", main="Logistic Distribution: location = 0, scale = 1", type="l") abline(h=0, col="gray") .y <- seq(-7.6,

Re: [R] The Origins of R

2009-02-04 Thread Duncan Murdoch
On 2/4/2009 3:53 PM, Mark Difford wrote: >>> Indeed. The postings exuded a tabloid-esque level of slimy nastiness. Hi Rolf, It is good to have clarification, for you wrote "..,the postings...," tarring everyone with the same brush. And it was quite a nasty brush. It also is conjecture that

Re: [R] Foreign function call

2009-02-04 Thread rkevinburton
Thank you that helps alot. Now the question is how do I know that it is in the 'stats' package? getNativeSymbolInfo doesn't seem to find 'RTSconv'. Kevin Sundar Dorai-Raj wrote: > You're missing that "R_TSConv" is an R object. You can use > stats:::R_TSConv to see the value. Not sure how

[R] Two issues with ggplot2 - grid.gedit doesn't work from source file & grid.gedit effects are not preserved

2009-02-04 Thread Jason Rupert
Code for this post is shown below.   Two issues: (1) grid.gedit doesn't work from source file Reproduce - copy the code shown below into an R source file, and of course save off in the appropriate location.  Then copy the the first line "source("C:/TestCode.R")" into R and run. Notice that you g

Re: [R] The Origins of R

2009-02-04 Thread Thomas Adams
Rolf, Yes, that's what I was referring to as well… Cheers! Tom Rolf Turner wrote: On 4/02/2009, at 8:15 PM, Mark Difford wrote: Indeed. The postings exuded a tabloid-esque level of slimy nastiness. Indeed, indeed. But I do not feel that that is necessarily the case. Credit should be gi

Re: [R] The Origins of R

2009-02-04 Thread Ted Harding
On 04-Feb-09 20:45:04, Nutter, Benjamin wrote: > > Those of us on this list (with the possible exception of one or > two nutters) would take it that it goes without saying that R was > developed on the basis of S --- we all ***know*** that. > > > Just want to clarify that the nutters referred

Re: [R] The Origins of R

2009-02-04 Thread Mark Difford
>> >>> Indeed. The postings exuded a tabloid-esque level of slimy nastiness. Hi Rolf, It is good to have clarification, for you wrote "..,the postings...," tarring everyone with the same brush. And it was quite a nasty brush. It also is conjecture that "this was due to an editor or sub-

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Ian Fiske
Thanks for the suggestion, Etienne. It looks like this might be the best approach after all, using a high resolution png exported from Inkscape. I'm impressed by its flawless pdf import! -ian On Wed, Feb 4, 2009 at 11:15 AM, Etienne Bellemare Racine wrote: > Maybe you could try to open the p

Re: [R] The Origins of R

2009-02-04 Thread Nutter, Benjamin
Those of us on this list (with the possible exception of one or two nutters) would take it that it goes without saying that R was developed on the basis of S --- we all ***know*** that. Just want to clarify that the nutters referred to here are not the same as the Nutters that bear my n

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Ian Fiske
Thanks. That fixed it. But I should've been careful about what I asked for. Now the graphs are basically unusable without transparency because the bands overlap so much. I'm still looking for a way to get transparency into Word without resorting to raster graphics. On Wed, Feb 4, 2009 at 12:55

Re: [R] The Origins of R

2009-02-04 Thread Rolf Turner
On 4/02/2009, at 8:15 PM, Mark Difford wrote: Indeed. The postings exuded a tabloid-esque level of slimy nastiness. Indeed, indeed. But I do not feel that that is necessarily the case. Credit should be given where credit is due. And that, I believe is the issue that is getting (some)

Re: [R] Large file size while persisting rpart model to disk

2009-02-04 Thread Duncan Murdoch
On 2/4/2009 2:27 PM, Terry Therneau wrote: Lots of interesting comments while I was off in meetings. (Some days I wonder why they pay me - with so many meetings I certainly don't accomplish any work.) Some responses: 1. To Brian: I think that there is another issue outside of save(). Use t

Re: [R] chi squared goodness of fit test with R

2009-02-04 Thread Stephan Kolassa
Hi Evrim, chisq.test() performs chi^2 GOF tests. However, the chi^2 test may be sensitive to how you bin your data if you are working with continuous data (as I infer from your mentioning cutting). You may want to look at other GOF tests. Perhaps the NIST statistics is a good starting point:

Re: [R] Passing data among multiple instances

2009-02-04 Thread Greg Snow
Look at the nws package, it has tools for passing data among multiple instances of R (and waiting for data to be ready). There are other packages that provide some of the same, but from what I remember, nws was fairly simple to set up on a single computer. Hope this helps, -- Gregory (Greg) L

Re: [R] lattice key inside panel

2009-02-04 Thread Deepayan Sarkar
On Wed, Feb 4, 2009 at 8:21 AM, Iago Mosqueira wrote: > Hello, > > I am trying to draw a key inside a single panel in a lattice xyplot. The > panel function uses panel.number() to use a slightly different style for > one of the panels. Once inside than panel I am using > > draw.key(list(text=list(

Re: [R] factor

2009-02-04 Thread kayj
Thanks for the tip, it worked, but I was wondering if I can use a vector of variables so I tried mode (l) “List” > l[3,1] [1] A Levels: A ,B , C >l[2,1] [1] B Levels: A ,B , C >l[1,1] [1] C Levels: A ,B , C I am trying to use the variable name so I tried fx<-factor(x,levels=c(l[3,1],l[2,1]

Re: [R] Numeric class and sasxport.get

2009-02-04 Thread Sebastien Bihorel
I also realized the flaw after testing the script on various datasets... Following up on your last note: 1- Is that the reason why the class of integer and regular numeric variable is solely "labelled" following sasxport.get? 2- Can class be 'soft' for other 'kind' of variables? 3- Would you an

Re: [R] In qplot, is it possible to switch the location of axis_h and strip_h?

2009-02-04 Thread hadley wickham
On Wed, Feb 4, 2009 at 1:21 PM, Jason Rupert wrote: > That is qplot, is it possible to switch the location of axis_h and strip_h? > > I produced a plot where I would like to have the strip_h on the bottom and > the axis_h on the top of the facet plot. Is that possible? Not yet, but it's on my

Re: [R] Large file size while persisting rpart model to disk

2009-02-04 Thread Terry Therneau
Lots of interesting comments while I was off in meetings. (Some days I wonder why they pay me - with so many meetings I certainly don't accomplish any work.) Some responses: 1. To Brian: I think that there is another issue outside of save(). Use the frailty.gamma function as a thought examp

Re: [R] Sweave

2009-02-04 Thread Kjetil Halvorsen
Thanks! Starts to work now... On Wed, Feb 4, 2009 at 3:13 PM, Charles C. Berry wrote: > On Wed, 4 Feb 2009, Duncan Murdoch wrote: > > cameron.bracken wrote: >> >>> Kjetil Halvorsen wrote: >>> >>> > The other problem refered to above comes from this source lines: >>> > > bubble(NURE.orig, "

[R] In qplot, is it possible to switch the location of axis_h and strip_h?

2009-02-04 Thread Jason Rupert
That is qplot, is it possible to switch the location of axis_h and strip_h?   I produced a plot where I would like to have the strip_h on the bottom and the axis_h on the top of the facet plot.   Is that possible?       P.S. I figured out how to not show the x-axis ticks, while still showing the

Re: [R] Problems in Recommending R

2009-02-04 Thread hadley wickham
> > It might be good to put some mild restriction on the design: > > > * should be valid (x)html and css > > Of course (although the current page also does not validate without > errors ;-) > > > * use the YUI css grid framework for layout > > Never heard about that one, but looks sensible. >

Re: [R] Problems in Recommending R

2009-02-04 Thread John Kane
--- On Tue, 2/3/09, hadley wickham wrote: > From: hadley wickham > Subject: Re: [R] Problems in Recommending R > To: "Neil Shephard" > Cc: r-help@r-project.org > Received: Tuesday, February 3, 2009, 9:20 AM > > Again I'd disagree, perhaps the most widely used > suite of software has a > > ve

Re: [R] Extracting Variable Name to define breaks for histogram

2009-02-04 Thread Uwe Ligges
Christian Langkamp wrote: Hi I am trying to define an automatic breaks function for a histogram. Inputs are a vector x and a number n. What I would like is to define the outcome as breaks_(Name of Vector) - but the paste("breaks_",x) obviously refers to the whole vector. breaks<- function(x

Re: [R] Sum(..) in apply()

2009-02-04 Thread Henrique Dallazuanna
Try this: result<- apply(temp,2,function(column)sum((column <=15)&(column > 6)), na.rm=TRUE) On Wed, Feb 4, 2009 at 2:48 PM, ole_roessler wrote: > > Dear, > > I have a set of ascii-grids. For each gridcell I want to count all values > that lie between 15 and 6. > Therefore I combined the ascii-

Re: [R] cronbachs alpha - score.items(psych) vs reliability(Rcmdr)

2009-02-04 Thread Greg Snow
You can run a function from a package by doing something like: > Rcmdr::reliability(cov(DavisThin)) This will load the package in the background, but not run the gui and other things. So you can use the function(s) that you want without running everything like when you do library(Rcmdr). Hope

Re: [R] Sum(..) in apply()

2009-02-04 Thread Uwe Ligges
ole_roessler wrote: Dear, I have a set of ascii-grids. For each gridcell I want to count all values that lie between 15 and 6. Therefore I combined the ascii-grids in an array and used result<- apply(temp,2,sum((temp <=15)&(temp > 6)), na.rm=TRUE) But, this doesn`t work. It seems that the

Re: [R] newbie - difficulty calling user defined function from by()

2009-02-04 Thread Uwe Ligges
Rixon, John C. wrote: Hi Folks: I'm new to R and am having trouble calling a user-defined function within the by() function. I have checked on-line help and the R documentation to no avail. I have a data frame with a sample subset represented here: example.sample ACCT_GROUP_DIM_KEY

Re: [R] executing R batch files

2009-02-04 Thread Greg Snow
Let me guess, you are using MSwindows and using notpad as the editor. Notepad has this annoying "feature" that if you save a file as a text file then it automatically adds '.txt' to the end of the file name. So when you saved as a text file it actually named the file "Rbatch.bat.txt" and the co

Re: [R] Statistics today on xkcd

2009-02-04 Thread Tony Breyal
haha, that made me laugh :-) Here's a cartoon featuring a picture some bloke called R.A. Fisher... http://www.phdcomics.com/comics/archive.php?comicid=905 On 4 Feb, 15:44, Warren Young wrote: > http://xkcd.com/539/ > > Not entirely on topic here, but how often do you see a box plot in a > carto

[R] Sum(..) in apply()

2009-02-04 Thread ole_roessler
Dear, I have a set of ascii-grids. For each gridcell I want to count all values that lie between 15 and 6. Therefore I combined the ascii-grids in an array and used result<- apply(temp,2,sum((temp <=15)&(temp > 6)), na.rm=TRUE) But, this doesn`t work. It seems that the combination apply with

[R] lattice key inside panel

2009-02-04 Thread Iago Mosqueira
Hello, I am trying to draw a key inside a single panel in a lattice xyplot. The panel function uses panel.number() to use a slightly different style for one of the panels. Once inside than panel I am using draw.key(list(text=list(lab='catch'), lines=list(lwd=c(2)), text=list(l

[R] newbie - difficulty calling user defined function from by()

2009-02-04 Thread Rixon, John C.
Hi Folks: I'm new to R and am having trouble calling a user-defined function within the by() function. I have checked on-line help and the R documentation to no avail. I have a data frame with a sample subset represented here: > example.sample ACCT_GROUP_DIM_KEY MV_BASE TOT_DEBT TOT_EQTY

[R] Extracting Variable Name to define breaks for histogram

2009-02-04 Thread Christian Langkamp
Hi I am trying to define an automatic breaks function for a histogram. Inputs are a vector x and a number n. What I would like is to define the outcome as breaks_(Name of Vector) - but the paste("breaks_",x) obviously refers to the whole vector. breaks<- function(x, n) { R<-range(x, na.rm=T) di

[R] R version update utility

2009-02-04 Thread Alexandre Aguiar
Hi, O wrote a small bash script that performs unattended upgrades of R. It has fit my purposes but I'd like to submit it to the community so it can be enhanced and widely useful. There is some redundancy in code and this will be addressed soon. Almost every action is logged but the main action

Re: [R] Problems in Recommending R

2009-02-04 Thread friedrich . leisch
> On Tue, 03 Feb 2009 07:00:54 -0700, > Warren Young (WY) wrote: > friedrich.lei...@stat.uni-muenchen.de wrote: >> >> For technical reasons there are some conditions: the homepage is >> maintained via SVN like the R sources, so all should be plain HTML, no >> content management

Re: [R] Foreign function call

2009-02-04 Thread Sundar Dorai-Raj
You're missing that "R_TSConv" is an R object. You can use stats:::R_TSConv to see the value. Not sure how this helps you though. On Wed, Feb 4, 2009 at 10:08 AM, wrote: > Let me get more specific. I think it this can be answered then I can > translate the information to other calls. In the ari

Re: [R] Sweave

2009-02-04 Thread Charles C. Berry
On Wed, 4 Feb 2009, Duncan Murdoch wrote: cameron.bracken wrote: Kjetil Halvorsen wrote: > The other problem refered to above comes from this source lines: > > bubble(NURE.orig, "ppm", col = c("#00ff0088", "#00ff0088")) > > You may have to escape the # character (i.e. put \# instead)

[R] Foreign function call

2009-02-04 Thread rkevinburton
Let me get more specific. I think it this can be answered then I can translate the information to other calls. In the arima 'R' code there is a reference to .Call(R_TSconv, a, b) If from the console I type: > .Call(R_TSConv, c(1,-1), c(1,-1)) I get: Error: object "R_TSConv" not found If I do

[R] R-Package ScottKnott

2009-02-04 Thread Enio Jelihovschi
We want to announce the Package ScottKnott now implemented at CRAN. The package uses the SkottKnott clustering algorithm to perform multiple comparison tests of means using the following experimental designs: Completely Randomized Design (CRD); Factorial Experiment (FE); Latin Squares Design (LSD);

Re: [R] Problems in Recommending R

2009-02-04 Thread friedrich . leisch
> On Wed, 4 Feb 2009 10:05:44 -0600, > hadley wickham (hw) wrote: >> > One of my colleagues is a interdisciplinary PhD in Design and >> > Psychology and he has an "in" with a design school where we might be >> > able to get students to take on the redesign of the website. >> >>

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread hadley wickham
On Wed, Feb 4, 2009 at 10:55 AM, Ian Fiske wrote: > Thanks for the suggestion, Hadley. I tried: > > stat_smooth(fill=alpha("grey",1)) > > and got the same problem. The shaded band shows up in the graphics > windows, but the only file format the keeps the confidence band is > PDF. > > Am I doing

Re: [R] The Origins of R

2009-02-04 Thread nashjc
Patrick Burns likely is closest to the truth in noting that the editing of the NYT article was possibly savage. The author is probably fuming, and can't do much or he'll not get future work. I was a columnist for Interface Age and then a sub-editor for Byte in the early 80s. If an ad came in close

Re: [R] Numeric class and sasxport.get

2009-02-04 Thread Frank E Harrell Jr
Sebastien Bihorel wrote: Thanks a lot Frank, One last question, though. I was tempted to remove all attributes of my variables after the sasxport.get call using foo <- sasxport.get(...) foo <- as.data.frame(lapply(unclass(foo),as.vector)) Since I never worked with the objects of class 'labeled

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Ian Fiske
Thanks for the suggestion, Hadley. I tried: stat_smooth(fill=alpha("grey",1)) and got the same problem. The shaded band shows up in the graphics windows, but the only file format the keeps the confidence band is PDF. Am I doing this correctly? -ian On Wed, Feb 4, 2009 at 11:07 AM, hadley wic

Re: [R] overlapping bars on "dodge" ggplot histogram - can it be fixed?

2009-02-04 Thread Jason Rupert
(Reposting - hopefully with a few of the typos fixed.)   Yeah.  That is the problem.   I would like for there to be an x-label, e.g. "person", but I don't want the x-axis tick marks for the facet to be labeled.  I would like to remove the facet x-axis tic mark labels.     For the example below:

Re: [R] counting entries in vector

2009-02-04 Thread axionator
rle(k)$lengths is perfectly suitable for my purposes. __ 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-cont

Re: [R] Problems in Recommending R

2009-02-04 Thread John Sorkin
In any redesign we need to remember that a good user interface that works with as many browsers as possible should be the primary design criteria. We don't need eye candy. John John David Sorkin M.D., Ph.D. Chief, Biostatistics and Informatics University of Maryland School of Medicine Division

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Etienne B. Racine
Maybe you could try to open the pdf in Inkscape http://www.inkscape.org/ and export it as a .emf or .png ? Etienne Ian Fiske wrote: > > Hi all, > > I am using ggplot2 and continuing to find it very useful and pretty. > However, I am trying to create some graphics for publication that would

Re: [R] Upgrading to TINN - R 2.1.1.6

2009-02-04 Thread Felipe Carrillo
Glad your problem is solved, I am in California and I grew up around the Mazatlan area so I won't be seing Hector for a while ;-) --- On Wed, 2/4/09, steve_fried...@nps.gov wrote: > From: steve_fried...@nps.gov > Subject: Re: [R] Upgrading to TINN - R 2.1.1.6 > To: mazatlanmex...@yahoo.com

Re: [R] data editor in R- could it be improved?

2009-02-04 Thread Prof Brian Ripley
There are three different data editors, so you will need to start by telling us your OS (and the other details asked for in the posting guide). But this is really an R-devel question, and that is where offers to work on this (or to sponsor such work) should be posted. As the author of one ve

Re: [R] data editor in R- could it be improved?

2009-02-04 Thread Suresh_FSFM
Hi ! I am using "Tinn R" data editor. This is wonderful and also thin one. Try this. I guess, yu will find what you are looking for. Regards, Suresh Simon Pickett-4 wrote: > > Hi all, > > I've used R for basic programming and data management for a few years now. > One of the things that I

[R] Problem installing ad administrating packages

2009-02-04 Thread Birgitle
Hello R-User! I am running R 2.8.1 on an Intel Mac. I just tried to install a package using the GUI and got the following error message: Fehler in if (14 + nchar(dcall, type = "w") + nchar(sm[1], type = "w") > : Fehlender Wert, wo TRUE/FALSE nötig ist Error in (14 + nchar(dcall, type = "w")

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Etienne Bellemare Racine
Maybe you could try to open the pdf in Inkscape http://www.inkscape.org/ and export it as a .emf or .png ? Etienne Ian Fiske a écrit : > Hi all, > > I am using ggplot2 and continuing to find it very useful and pretty. > However, I am trying to create some graphics for publication that would be

Re: [R] Large file size while persisting rpart model to disk

2009-02-04 Thread Duncan Murdoch
On 2/4/2009 10:57 AM, l...@stat.uiowa.edu wrote: On Wed, 4 Feb 2009, Duncan Murdoch wrote: One correction below, and a suggested alternative approach. On 2/4/2009 9:31 AM, Terry Therneau wrote: In R, functions remember their entire calling chain. The good thing about this is that they can

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread Felipe Carrillo
Ian: It would work if you copy it as a bitmap. Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA --- On Wed, 2/4/09, Ian Fiske wrote: > From: Ian Fiske > Subject: [R] ggplot: problem with fill option in stat_smooth(

Re: [R] ggplot: problem with fill option in stat_smooth()

2009-02-04 Thread hadley wickham
On Wed, Feb 4, 2009 at 9:12 AM, Ian Fiske wrote: > > Hi all, > > I am using ggplot2 and continuing to find it very useful and pretty. > However, I am trying to create some graphics for publication that would be > included in an MS Word document (not my choice!) in Windows Vista. > > The problem is

Re: [R] Problems in Recommending R

2009-02-04 Thread hadley wickham
> > One of my colleagues is a interdisciplinary PhD in Design and > > Psychology and he has an "in" with a design school where we might be > > able to get students to take on the redesign of the website. > > Thanks a lot, sounds exactly like what we need. If they don't succeed > we can always by

Re: [R] Passing data among multiple instances

2009-02-04 Thread Andy Zhu
--- On Wed, 2/4/09, Feng Li <840...@gmail.com> wrote: From: Feng Li <840...@gmail.com> Subject: Re: [R] Passing data among multiple instances To: "Warren Young" Cc: r-help@r-project.org Date: Wednesday, February 4, 2009, 10:19 AM On Wed, Feb 4, 2009 at 4:02 PM, Warren Young wrote: > Feng Li w

Re: [R] Large file size while persisting rpart model to disk

2009-02-04 Thread luke
On Wed, 4 Feb 2009, Duncan Murdoch wrote: One correction below, and a suggested alternative approach. On 2/4/2009 9:31 AM, Terry Therneau wrote: In R, functions remember their entire calling chain. The good thing about this is that they can find variables further up in the nested context,

Re: [R] Problems in Recommending R

2009-02-04 Thread Duncan Murdoch
Hadley put together a couple of nice versions of the main Windows download page cran.r-project.org/bin/windows/base, and I've adopted one of them for the release, and the patched and devel snapshot builds. They should show up on CRAN in a few hours. Thanks a lot for the contribution, Hadley:

Re: [R] counting entries in vector

2009-02-04 Thread Henrique Dallazuanna
Try: table(k) On Wed, Feb 4, 2009 at 1:19 PM, axionator wrote: > Hi all, > I've a vector with entries, which are all of the same type, e.g. string: > k <- c("bb", "bb", "bb", "aa", "cc", "cc") > and want to create a second vector containing the number of each entry > in k in the same order as i

[R] Statistics today on xkcd

2009-02-04 Thread Warren Young
http://xkcd.com/539/ Not entirely on topic here, but how often do you see a box plot in a cartoon? __ 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-gui

Re: [R] counting entries in vector

2009-02-04 Thread Ian Fiske
Try: table(k)[rank(unique(k))] -ian Armin Meier wrote: > > Hi all, > I've a vector with entries, which are all of the same type, e.g. string: > k <- c("bb", "bb", "bb", "aa", "cc", "cc") > and want to create a second vector containing the number of each entry > in k in the same order as in k,

Re: [R] list.files changed in 2.7.0

2009-02-04 Thread davidr
My original message referred to the double slash and using grep. The particular behavior on C: wasn't the issue. For example, > list.files("C:/test1", full.names=TRUE) [1] "C:/test1/file1" "C:/test1/file2" > list.files("C:/test1/", full.names=TRUE) [1] "C:/test1//file1" "C:/test1//file2" > # Note

Re: [R] holidays effect

2009-02-04 Thread vito muggeo
Gabor Grothendieck ha scritto: One possibility if you don't have to have days is to reduce it to a weekly or monthly series. Alternatively you can put a dummy variable (1=holiday and zero otherwise) in the regression model for your response. For instance, you could use the xreg argument of t

Re: [R] counting entries in vector

2009-02-04 Thread Stavros Macrakis
Take a look at the run-length encoding function rle. I believe rle(k)$lengths gives you exactly what you want. -s On Wed, Feb 4, 2009 at 10:19 AM, axionator wrote: > Hi all, > I've a vector with entries, which are all of the same type, e.g. string: > k <- c("bb", "bb", "bb", "aa", "

Re: [R] counting entries in vector

2009-02-04 Thread Ben Bolker
axionator gmail.com> writes: > I've a vector with entries, which are all of the same type, e.g. string: > k <- c("bb", "bb", "bb", "aa", "cc", "cc") > and want to create a second vector containing the number of each entry > in k in the same order as in k, i.e. > c(3, 1, 2) table(k) Ben Bolk

Re: [R] chi squared goodness of fit test with R

2009-02-04 Thread Ian Fiske
You might try the cut() function to convert your data from a continuous measure into an ordinal factor. Then use the table() function to get your contingency table. The R help system is very extensive. Type "?cut" to get the help on the function cut(). This works with all functions. Look at t

Re: [R] Numeric class and sasxport.get

2009-02-04 Thread Sebastien Bihorel
Thanks a lot Frank, One last question, though. I was tempted to remove all attributes of my variables after the sasxport.get call using foo <- sasxport.get(...) foo <- as.data.frame(lapply(unclass(foo),as.vector)) Since I never worked with the objects of class 'labeled', I was wondering what I

Re: [R] overlapping bars on "dodge" ggplot histogram - can it be fixed?

2009-02-04 Thread Jason Rupert
Yeah.  That is the problem.   I would ant there to be a x-label, but I don't want the x-axis tick marks for the facet to be labeled.   For the example below: VADeaths_flat_df = stack(as.data.frame(VADeaths)) names(VADeaths_flat_df) = c('Data','Person')    counts <- ddply(VADeaths_flat_df, .(cu

Re: [R] counting entries in vector

2009-02-04 Thread Gabor Grothendieck
Its not clear whether c("bb", "bb", "aa", "aa", "bb") can occur or if it can how it should be handled but this gives the lengths of each run and so would give c(2, 2, 1) in that case (as opposed to c(3, 2)): rle(k)$lengths On Wed, Feb 4, 2009 at 10:19 AM, axionator wrote: > Hi all, > I've a vect

Re: [R] counting entries in vector

2009-02-04 Thread Dimitris Rizopoulos
try this: k <- c("bb", "bb", "bb", "aa", "cc", "cc") f <- factor(k, levels = unique(k)) as.vector(table(f)) you can put it in one line but it's less readable. I hope it helps. Best, Dimitris axionator wrote: Hi all, I've a vector with entries, which are all of the same type, e.g. string: k

  1   2   >