Re: [R] Problems dealing with matrices

2013-11-30 Thread halim10-fes
olsum1[colsum1>=18][gsub(".*\\.\\d{2}","",sprintf("%.4f", > colsum1[colsum1>=18]))=="00"] 180  305 > 32.88996 45.37004 > > A.K. > > On Thursday, November 28, 2013 3:57 AM, halim10-fes f...@sust.edu> wrote: Hi, >

Re: [R] Problems dealing with matrices

2013-11-28 Thread halim10-fes
in advance. Regards, Halim                --- Md. Abdul Halim Assistant Professor Department of Forestry and Environmental Science Shahjalal University of Science and Technology,Sylhet-3114, Bangladesh. Cell: +8801714078386. alt. e-mail: xo...@yahoo.com On Tue, 26 Nov 2013

Re: [R] Problems dealing with matrices

2013-11-26 Thread halim10-fes
%*% ( volmat + wt ) > > for ( idx in seq_along(volinp)[ -1 ] ) { >   vol[ , idx ] <- dcmat %*% ( vol[ , idx-1 ] + volinp[idx] * wt ) > } > identical(vol,vol1) > #[1] TRUE > > A.K. > > On Sunday, November 24, 2013 7:16 AM, halim10-fes f...@sust.edu> wrote: Hi Arun, >

Re: [R] Problems dealing with matrices

2013-11-24 Thread halim10-fes
gt; forcing function. > > wt <- matrix( c(1,0,0,0,0 ), nrow=5 ) > vol <- matrix( NA, nrow=5, ncol=length( volinp ) ) > vol[ , 1 ] <- dcmat %*% ( volmat + wt ) > > for ( idx in volinp[ -1 ] ) { >vol[ , idx ] <- dcmat %*% ( vol[ , idx-1 ] + idx * wt ) > } >

Re: [R] Problems dealing with matrices

2013-11-23 Thread halim10-fes
ahoo.com On Sat, 23 Nov 2013 14:10:12 -0800 (PST), arun wrote > Hi, > Could you show your expected output?  It is a bit unclear from the description. > > On Saturday, November 23, 2013 2:00 PM, halim10-fes f...@sust.edu> wrote: Dear R-friends, > > Hope you doing well. I

Re: [R] Problems dealing with matrices

2013-11-23 Thread halim10-fes
nce and Technology,Sylhet-3114, Bangladesh. Cell: +8801714078386. alt. e-mail: xo...@yahoo.com On Sat, 23 Nov 2013 14:10:12 -0800 (PST), arun wrote > Hi, > Could you show your expected output?  It is a bit unclear from the description. > > On Saturday, November 23, 2013 2:00 P

[R] Problems dealing with matrices

2013-11-23 Thread halim10-fes
Dear R-friends, Hope you doing well. I've been trying to deal with the following problem for the couple of days but couldn't come up with a solution. It would be great if any of you could give some insight into it. I have three matrices like: dcvol<-matrix(c(0.13,0.61,0.25,0.00,0.00,0.00,0.52,

Re: [R] raster package: merge/mosaic

2013-10-23 Thread halim10-fes
Hi, With the 'merge' function using different tolerance level, I've come up with a solution. For e.g. consider r1 and r2 as two raster layers, attributes are as follows: >r1 <- raster(xmx=-150, ymn=60, ncols=30, nrows=20) >r1[]<-1:ncell(r1) >r1 class : RasterLayer dimensions : 20, 30,

Re: [R] How to draw figures in a graph?

2013-10-23 Thread halim10-fes
Hi Patric, Thanks for your explanation and suggestions. I didn't know that it might happen. Sorry about that. A good lesson for the future post. Thanks again. Halim On Wed, 23 Oct 2013 21:00:28 +1300, Patrick Connolly wrote > This is a request to anyone who starts a new subject to begin wit

[R] How to draw figures in a graph?

2013-10-22 Thread halim10-fes
Hi All, Hope you guys are doing well. I am thinking of drawing some figures within a graph to make it more interesting. To make a graph more storytelling, like the attached one. I am looking for a couple of days but couldn't come up with any solution on how to do it with R. Any ideas will be g