Re: [R] as.matrix behaves weird

2010-11-14 Thread Feng Mai
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 pos

Re: [R] sum in vector

2010-11-14 Thread Feng Mai
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 >> >>

Re: [R] Problem in installing and starting Rattle

2010-11-15 Thread Feng Mai
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 uninstal

Re: [R] Fetching data

2010-11-15 Thread Feng Mai
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_pric

Re: [R] Problem in installing and starting Rattle

2010-11-15 Thread Feng Mai
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