[R] error message solution: cannot allocate vector of size 200Mb

2013-05-23 Thread Ray Cheung
Dear All, I wrote a program using R 2.15.2 but this error message "cannot allocate vector of size 200Mb" appeared. I want to ask in general how to handle this situation. I try to run the same program on other computers. It is perfectly fine. Can anybody help? Thank you very much in advance. Best

Re: [R] missing values in an array

2013-03-15 Thread Ray Cheung
Thank you very much. Arun's reply is exactly what I need. Thank you once again!~ ray On Sat, Mar 16, 2013 at 12:31 AM, Berend Hasselman wrote: > > On 15-03-2013, at 17:08, Ray Cheung wrote: > > > Dear All, > > > > I've an array with some missing val

[R] missing values in an array

2013-03-15 Thread Ray Cheung
Dear All, I've an array with some missing values (NA) in between. I want to remove that particular matrix if a missing value is detected. How can I do so? Thank you very much. Best regards, Ray [[alternative HTML version deleted]] __ R-help@r-

Re: [R] Merging data in arrays

2013-02-21 Thread Ray Cheung
ing > Research Engineer (Solar/BatteriesO.O#. #.O#. with > /Software/Embedded Controllers) .OO#. .OO#. rocks...1k > ------- > Sent from my phone. Please excuse my brevity. > > Ray

Re: [R] Merging data in arrays

2013-02-21 Thread Ray Cheung
Dear All, I've 2 arrays A and B: dim(A) = 100, 10, 1000 dim(B) = 100, 20, 900 I know there are 5 columns of values common to both arrays. I want to ask how to merge the 2 arrays. Thanks in advance! Best Regards, Ray [[alternative HTML version deleted]]

Re: [R] Merging data in arrays

2013-02-07 Thread Ray Cheung
matrix(!x[,-1]%in% x[,1],nrow=5),2,all))]) > Fnew<-array(unlist(list1),dim=c(dim(list1[[1]]),length(list1))) > > identical(F,Fnew) > #[1] TRUE > A.K. > > > - Original Message - > From: Ray Cheung > To: r-help@r-project.org > Cc: > Sent: Wednesday, Feb

[R] Merging data in arrays

2013-02-06 Thread Ray Cheung
Dear All, Here is a hypothetical sample (sorry for the clumsy code): A1 <- matrix(1:5, nrow=5, ncol=1) A2 <- matrix(6:10, nrow=5, ncol=1) A3 <- matrix(11:15, nrow=5, ncol=1) A4 <- matrix(16:20, nrow=5, ncol=1) A5 <- matrix(21:25, nrow=5, ncol=1) A6 <- matrix(26:30, nrow=5, ncol=1) B1 <- matrix(c

Re: [R] importing data

2013-01-28 Thread Ray Cheung
éosciences > 6 Boulevard Gabriel > 21000 Dijon, FRANCE > +33(0)3.80.39.63.06 > ivan.calan...@u-bourgogne.fr > http://biogeosciences.u-**bourgogne.fr/calandra<http://biogeosciences.u-bourgogne.fr/calandra> > > Le 28/01/13 07:34, Ray Cheung a écrit : > >> Thanks a

Re: [R] importing data

2013-01-27 Thread Ray Cheung
iogéosciences > 6 Boulevard Gabriel > 21000 Dijon, FRANCE+33(0)3.80.39.63.06ivan.calan...@u-bourgogne.fr > http://biogeosciences.u-bourgogne.fr/calandra > > Le 26/01/13 10:03, Ray Cheung a écrit : > > Thanks for your commands, Ivan and Michael! However, I am still not > producing the right co

Re: [R] importing data

2013-01-26 Thread Ray Cheung
biogeosciences.u-bourgogne.fr/calandra> > > Le 25/01/13 10:00, R. Michael Weylandt a écrit : > >> On Fri, Jan 25, 2013 at 6:11 AM, Ray Cheung wrote: >> >>> Dear Michael, >>> >>> Thanks for your codes. However, lapply does not work in my case since

Re: [R] importing data

2013-01-24 Thread Ray Cheung
el.weyla...@gmail.com> wrote: > On Wed, Jan 23, 2013 at 9:16 AM, Ray Cheung wrote: > > Dear All, > > > > Sorry for asking a newbie question. I want to ask how to import 1000 > > datasets whose file names are labelled from data1.dat to data1000.dat > into > &

[R] importing data

2013-01-23 Thread Ray Cheung
Dear All, Sorry for asking a newbie question. I want to ask how to import 1000 datasets whose file names are labelled from data1.dat to data1000.dat into R so that they are named M[1, , ] to M[1000, , ] accordingly. Thank you very much. Best Regards, Ray [[alternative HTML version delete

[R] exporting simulated data

2013-01-16 Thread Ray Cheung
Dear All, I wrote a function datagen to simulate a dataset. I would like to generate 1000 datasets and export them with file names from data0001.dat to data1000.dat. Would anybody please provide some useful codes on this? Thank you very much. Best Regards, Ray [[alternative HTML version