[R] Append data to vector form a column of a dataframe

2011-10-12 Thread behave
Dear R-community, When doing this: > test<-data.frame(a=c(1,2,3)) > rbind(test$a, 3) I expect something like: > 1 > 2 > 3 > 2 but get: > [,1] [,2] [,3] >[1,]123 >[2,]222 the same for: rbind(test[["a"]], 2) or rbind(as.vector(test[["a"]]), 2) or rbind(t(as.vector(

[R] "stepwise" sum

2011-10-05 Thread behave
dear R-Community is there a function which sums data "stepwise" exp: 2 1 4 5 Desired result 2 = 2 2+1 = 3 2+1+4 = 7 2+1+4+5 = 12 Is there a built in function for this? Thx Dom -- View this message in context: http://r.789695.n4.nabble.com/stepwise-sum-tp3874606p3874606.html Sent from th

Re: [R] qplot(model)

2011-09-15 Thread behave
problem solved ?fortify -> examples thanks Michael -- View this message in context: http://r.789695.n4.nabble.com/qplot-model-tp3815060p3815113.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https:/

[R] qplot(model)

2011-09-15 Thread behave
hi R Community Is it possible to plot a model using the ggplot2 package. Something like: x<-rnorm(100) y<-rnorm(100) fit<-lm(y~x) plot(fit) but with ggplot2 qplot(fit)? thanks michael -- View this message in context: http://r.789695.n4.nabble.com/qplot-model-tp3815060p3815060.html Sent from t

Re: [R] Configuring Proxy: Proxy Authentication Required with --internet2

2011-08-30 Thread behave
That was my first guess as well, but unfortunately this doesn't solve the problem. I is remarkably that IE requires authentification for every new instance I open (even if another instance is already open)... Any other hints? -- View this message in context: http://r.789695.n4.nabble.com/Config

[R] Configuring Proxy: Proxy Authentication Required with --internet2

2011-08-29 Thread behave
Hi there I'm trying to configure R to get access to the internet. Using the Internet Explorer a proxy .pac script is used. Reading some older threads I found that I can use the --internet2 option. When choosing a mirror I get the error: "407 Proxy Authentication Required". This seems reasonable

Re: [R] filter data.frame

2010-10-07 Thread behave
Thanks, works perfectly -- View this message in context: http://r.789695.n4.nabble.com/filter-data-frame-tp2966377p2966398.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

[R] filter data.frame

2010-10-07 Thread behave
hi all, how do I filter a dataframe. What I am looking for is something like: data<-data.frame(matrix(c(2,2,1,2,2,2,2,2,3),byrow=TRUE,ncol=3)) subset(data, subset=(X3=="3" && X2=="2" && X1=="2")) thanks -- View this message in context: http://r.789695.n4.nabble.com/filter-data-frame-tp296