Re: [R] Thanks for help

2021-03-25 Thread Bert Gunter
apply() is also a (disguised) loop, though. I think you will find that indexing via rowSums is a lot faster: ## The example set.seed(111) ## for reproducibility a<-matrix(sample(1:20,350,TRUE),ncol=10) ## 35 rows ## A one-liner a[rowSums(a != 1) == 10, ] ## 20 rows Bert Gunter "The trouble w

Re: [R] Thanks for help

2021-03-25 Thread Jim Lemon
Okay, if I understand this, you want to remove all rows that have, for example, a 1 in any of ten columns: a<-matrix(sample(1:20,350,TRUE),ncol=10) # check it out a # first do it with a loop b<-a for(i in 1:ncol(b)) b<-b[b[,i]!=1,] b # now get tricky and do it in one operation no1s<-apply(a,1,func

[R] Thanks for help

2010-10-06 Thread aquanyc
Martin, Thank you very much for posting a great reply. Cheers, Chris Bartlett __ 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 com

Re: [R] [R-sig-Geo] LIDAR Problem in R (THANKS for HELP)

2008-08-05 Thread Prof Brian Ripley
Let's not cross-post! I'll pick up only one point of general relevance on this list (R-help). On Tue, 5 Aug 2008, Matt Oliver wrote: you can try memory.limit(size=4000) only if you have 4GB of memory on the system This is not guaranteed to solve your problem though Assuming this is Windo

Re: [R] R: LIDAR Problem in R (THANKS for HELP)

2008-08-05 Thread Dylan Beaudette
Per > conto di Dylan Beaudette Inviato: martedì 5 agosto 2008 14.25 > A: r-help@r-project.org > Oggetto: Re: [R] LIDAR Problem in R (THANKS for HELP) > > On Tuesday 05 August 2008, Alessandro wrote: > > Hi All, > > > > > > > > I am a PhD student in forest

Re: [R] LIDAR Problem in R (THANKS for HELP)

2008-08-05 Thread Dylan Beaudette
On Tuesday 05 August 2008, Alessandro wrote: > Hi All, > > > > I am a PhD student in forestry science and I am working with LiDAR data set > (huge data set). I am a brand-new in R and geostatistic (SORRY, my > background it’s in forestry) but I wish improve my skill for improve > myself. I wish to

Re: [R] [R-sig-Geo] LIDAR Problem in R (THANKS for HELP)

2008-08-05 Thread Matt Oliver
you can try memory.limit(size=4000) only if you have 4GB of memory on the system This is not guaranteed to solve your problem though With big datasets like lidar, you are much better off getting access to a 64bit system with a ton of RAM (>64GB). Cheers Matt On Tue, Aug 5, 2008 at 1:47 PM,

[R] I: R: [R-sig-Geo] R: LIDAR Problem in R (THANKS for HELP)

2008-08-05 Thread Alessandro
ailto:[EMAIL PROTECTED] Inviato: martedì 5 agosto 2008 13.24 A: Alessandro Oggetto: Re: R: [R-sig-Geo] R: LIDAR Problem in R (THANKS for HELP) If an extra GB of memory will solve the problem, you might try doing a google search on '3 GB Switch Windows Vista' and see if it's possib

[R] R: [R-sig-Geo] LIDAR Problem in R (THANKS for HELP)

2008-08-05 Thread Alessandro
-help@r-project.org; [EMAIL PROTECTED] Oggetto: Re: [R-sig-Geo] LIDAR Problem in R (THANKS for HELP) you can try memory.limit(size=4000) only if you have 4GB of memory on the system This is not guaranteed to solve your problem though With big datasets like lidar, you are much better off

[R] LIDAR Problem in R (THANKS for HELP)

2008-08-05 Thread Alessandro
Hi All, I am a PhD student in forestry science and I am working with LiDAR data set (huge data set). I am a brand-new in R and geostatistic (SORRY, my background it’s in forestry) but I wish improve my skill for improve myself. I wish to develop a methodology to processing a large data-set o