[R] .jinit()

2008-03-11 Thread Michael Sun
Dear list, when I write .jinit(), the following error message coming out. Error occurred during initialization of VM Could not reserve enough space for object heap Error in .jinit() : Cannot create Java virtual machine (-4) I have C:\Program Files\Java\jre1.6.0_04 and C:\Program Files\Java\jre1.

[R] sub or gsub function

2007-10-01 Thread Michael Sun
Dear list, x <- c("year","date","time","starting price","end price","max","min") how can I change all these lower-case letter to capital letter? how can I use sub or gsub function??? sub("year","YEAR",x) will only change one each time... Appreciate for any helps Cheers mam [[alterna