Re: [R] as.matrix behaves weird
ncol is not an argument for as.matrix() Alexx Hardt gmx.de> writes: > > Hi, > can someone tell me why x is still a 2x1-matrix in the last step? > __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] sum in vector
to be more general you can also use aggregate: aggregate(price,list(market),sum) Henrique Dallazuanna wrote: > > Try this: > > rowsum(price, market) > > On Sun, Nov 14, 2010 at 10:02 AM, lgpeco wrote: > >> >> hy guys i have one question :) >> >> i have two vectors markets and price >> >> market <- c(1, 5, 7, 9, 9, 6, 5, 4, 4, 3, 1, 2, 1) >> price <- c(100, 20, 30, 10, 50, 23, 23, 33, 96, 6, 4, 38, 96) >> i would like sum prices: market 1: (100+4+96), market 2: (38),..., market >> 9: >> (10+50) >> ao i would like get this result: (200, 38, ..., 60) >> and i don't wanna use while, for loops... is there any other function to >> sum >> these :) >> >> tnx for helping ;) >> -- >> View this message in context: >> http://r.789695.n4.nabble.com/sum-in-vector-tp3041661p3041661.html >> Sent from the R help mailing list archive at Nabble.com. >> >> __ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > > > -- > Henrique Dallazuanna > Curitiba-Paraná-Brasil > 25° 25' 40" S 49° 16' 22" O > > [[alternative HTML version deleted]] > > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- View this message in context: http://r.789695.n4.nabble.com/sum-in-vector-tp3041661p3041991.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Problem in installing and starting Rattle
I also have the problem trying to start rattle Windows 7 32-bit R 2.12.0 When I try library(rattle) I get an error message "The procedure entry point deflateSetHeader could not be located in the dynamic link library zilb1.dll" I hit OK and it prompts me to install GTK+ again. I tried to uninstall GTK+ first and delete all related files as Dieter suggested but still wont work :( -- View this message in context: http://r.789695.n4.nabble.com/Problem-in-installing-and-starting-Rattle-tp3042502p3043262.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Fetching data
IMO it is not possible. The code behind aspx page queries data from a database server and display it on the webpage. Maithula Chandrashekhar wrote: > > Dear all R users, I am wondering is there any procedure exists on R to > fetch > data directly from "http://www.ncdex.com/Market_Data/Spot_price.aspx"; and > save it in some time series object, without filling any field in that > website. > > Can somebody point me whether it is possible? > > Thanks and regards, > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- View this message in context: http://r.789695.n4.nabble.com/Fetching-data-tp3041662p3043275.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Problem in installing and starting Rattle
Ok to follow up my post, I finally got rattle and RGtk2 to work. The trick is when R prompts me to install Gtk2+ I still hit yes but after the download, once the installation process starts I close the R Gui window. After Gtk2+ installation is complete I start R again and it worked. -- View this message in context: http://r.789695.n4.nabble.com/Problem-in-installing-and-starting-Rattle-tp3042502p3043318.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.