search for: 1x3

Displaying 20 results from an estimated 25 matches for "1x3".

Did you mean: 13
2006 Jul 27
2
Vector extracted from a matrix. How can I specify dimensions in as.matrix?
...n the model, I need to transpose those vectors that are extracted from a matrix. Using simple vectors (no matrix involved) the transpose function works fine: simplevector <-matrix(1:3,3,1) tsimplevector <-t(simplevector) #transposed dim(simplevector) #3x1 matrix (vector) dim(tsimplevector)#1x3 PROBLEM: However, when the vector is extracted from a matrix, its dimension is NULL. In this case the transposed dimension is correct, but you'll see the next example, that if a row was extracted, the dimension would be wrong: initialmatrix <- matrix(1:9,3,3) extractedvector <-initia...
2017 Jul 04
2
I need a sanity check.
2010 Aug 31
3
"mode" function
...ow if there is a "mode" function in R, such that from a vector or matrix the function returns the most common value. In other programs I use (such as Matlab) I can have for exampe a 3X3 matrix A, A=[1 2 3; 1 3 2; 3 3 2] and I can find the mode of the rows so that mode(A[1:3,:]) returns a 1X3 matrix [1 3 2]. Is this possible in R as well? If not, how would one go about this? Thank you very much, Bill [[alternative HTML version deleted]]
2003 May 16
4
Newbie hung up with matrices
...ll: Thanks in advance for your assistance. I just started learning R. I'm trying to use the Help and the downloadable manuals. I am stuck on trying to multiply matrices. Can anyone please supply a couple of lines of code that I can plug into a fresh console to see how a double precision (1x3) matrix is multiplied by a double precision (3x3) matrix? I keep getting an error message,"Error in x%*%A: requires numeric matrix/vector arguments". I have some VBA and VB experience (thus a little Object Oriented programming experience), am I right in beliving that I am not "dim...
2005 Oct 21
3
SCSI schizophrenia
...shifting stuff around in the rack. # cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: MegaRAID Model: LD 0 RAID5 69G Rev: 4.10 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 04 Id: 06 Lun: 00 Vendor: PE/PV Model: 1x3 SCSI BP Rev: 1.1 Type: Processor ANSI SCSI revision: 02 Host: scsi0 Channel: 05 Id: 06 Lun: 00 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1514 Type: Sequential-Access ANSI SCSI revision: 03 Host: scsi0 Channel: 05 Id: 06 Lun: 01 Vendor: SEAG...
2010 Apr 22
1
Why does 'apply(.., 1, .., ..)' transpose result
I am sorry if this is documented in apply's dcumentation or completely obvious, I could not find or work it out. Given an matricies Q: 2x3, R:1x3 and S:1x2 apply(Q, 1, '-', R) is 3x2 and apply(Q, 2, '-', S) is 2x3 Why? cheers Worik > Q [,1] [,2] [,3] [1,] 1 2 3 [2,] 10 11 12 > R [1] 1 4 7 > S [1] 1 4 > apply(Q, 1, '-', R) [,1] [,2] [1,] 0 9 [2,] -2 7 [3,] -4 5 &...
2009 Mar 23
1
changing order of lattice plots
...so on. I have tried using a `index.cond=list(60:1)' (I have 3 classes for Chromosome and 20 classes for Type) parameter - this approximates what I want while I sort out the syntax. But I get `Error in cond.orders(foo) : Invalid value of index.cond' returned. The equivalent parameter for a 1x3 plot: histogram(~Length/1000 | Chromosome, data=readlengths, layout=c(1,3), xlab="Contig Length (kb)", nint=25, type="count", col="grey60", index.cond=list(3:1), strip=strip.custom(bg="grey90")) works fine, so I'm not sure where to go from here. Any he...
2017 Jul 07
2
Rebalance task fails
Hello everyone, I have problem rebalancing Gluster volume. Gluster version is 3.7.3. My 1x3 replicated volume become full, so I've added three more bricks to make it 2x3 and wanted to rebalance. But every time I start rebalancing, it fails immediately. Rebooting Gluster nodes doesn't help. # gluster volume rebalance gsae_artifactory_cluster_storage start volume rebalance: gsae_a...
2009 Sep 18
1
Incorrect Dimension
...) { #ind=1000 g1 <= function ( gen ) matrix ( if (gen[j, i] == 0) al1 [i, 1] + al1 [i, 1] else if (gen [j, i] == 1) al1 [i, 1] + al2 [i, 1] else if (gen [j, i] == 2) al2 [i, 1] + al2 [i, 1] else 999, ncol = loc, nrow = ind) g2 <= function ( gen ) sample (b1, 1, re = T) #b1 is 1x3 and came from a vector 1000X1 (e.g b1 <- c(x [1000,1]...) xx <= if (runif (1) >= (1 - r2)) g1 else g2 g [j, i] <= xx (gen [j, i]) #g was already generated as an 0 matrix (1000x200) and i would like to replace ##by those functios } } Thank you very much -- View this message i...
2017 Jul 10
2
Rebalance task fails
..., Nithya Balachandran <nbalacha at redhat.com> wrote: > > On 7 July 2017 at 15:42, Szymon Miotk <szymon.miotk at gmail.com> wrote: >> >> Hello everyone, >> >> >> I have problem rebalancing Gluster volume. >> Gluster version is 3.7.3. >> My 1x3 replicated volume become full, so I've added three more bricks >> to make it 2x3 and wanted to rebalance. >> But every time I start rebalancing, it fails immediately. >> Rebooting Gluster nodes doesn't help. >> >> # gluster volume rebalance gsae_artifactory_cl...
2017 Jun 25
2
Writing my 3D plot function
...rcle on 3d space. Circle of radius 1X1<-turnPolarToX(1,1:360)Y1<-turnPolarToY(1,1:360)Z1<-rep(0,360) # Putting the second circle on 3d space. Circle of radius 1X2<-turnPolarToX(1,1:360)Y2<-rep(0,360)Z2<-turnPolarToY(1,1:360) # Putting the third circle on 3d space. Circle of radius 1X3<-rep(0,360)Y3<-turnPolarToX(1,1:360)Z3<-turnPolarToY(1,1:360) Min<-min(X1,Y1,Z1,X2,Y2,Z2,X3,Y3,Z3)Max<-max(X1,Y1,Z1,X2,Y2,Z2,X3,Y3,Z3)plot3d(X1,Y1,Z1,xlim=c(Min,Max),ylim=c(Min,Max),zlim=c(Min,Max),box=TRUE,axe=FALSE,add=TRUE,col="red",type="l")plot3d(X2,Y2,Z2,xli...
2017 Jul 09
0
Rebalance task fails
On 7 July 2017 at 15:42, Szymon Miotk <szymon.miotk at gmail.com> wrote: > Hello everyone, > > > I have problem rebalancing Gluster volume. > Gluster version is 3.7.3. > My 1x3 replicated volume become full, so I've added three more bricks > to make it 2x3 and wanted to rebalance. > But every time I start rebalancing, it fails immediately. > Rebooting Gluster nodes doesn't help. > > # gluster volume rebalance gsae_artifactory_cluster_storage start...
2017 Jul 13
2
Rebalance task fails
...; > On 7 July 2017 at 15:42, Szymon Miotk <szymon.miotk at gmail.com> wrote: >> >> >> >> Hello everyone, >> >> >> >> >> >> I have problem rebalancing Gluster volume. >> >> Gluster version is 3.7.3. >> >> My 1x3 replicated volume become full, so I've added three more bricks >> >> to make it 2x3 and wanted to rebalance. >> >> But every time I start rebalancing, it fails immediately. >> >> Rebooting Gluster nodes doesn't help. >> >> >> >> #...
2005 Jul 08
1
help with ARIMA and predict
...----- Suppose I use arima to fit the model: df.y<-arima(yvec,order=c(L,0,0),xreg=xmat[,(1:K)],n.cond=maximum.lag) Now suppose I want to do a 1-period ahead prediction based on the results of this regression, using predict: predict(df.y,newxreg=newx,n.ahead=1) I'm expecting newx to be 1X3. After all, I just want to predict 1 value of y, so in my mind I should just need 1 time period's observation of x (i.e. # rows=n.ahead). I'm sort of expecting predict to grab the last two values of yvec to use as y(t),y(t-1) in prediction. If I make such a pass, I get: Error in predict...
2006 Feb 24
3
Dom0 lvm/software raid rhel4.1 booting issues.
...SI device sdc: 143374650 512-byte hdwr sectors (73408 MB) SCSI device sdc: drive cache: write through SCSI device sdc: 143374650 512-byte hdwr sectors (73408 MB) SCSI device sdc: drive cache: write through sdc: sdc1 Attached scsi disk sdc at scsi0, channel 0, id 2, lun 0 Vendor: PE/PV Model: 1x3 SCSI BP Rev: 1.1 Type: Processor ANSI SCSI revision: 02 scsi1 : ioc1: LSI53C1030, FwRev=01032300h, Ports=1, MaxQ=255, IRQ=19 Loading dm-mod.ko module device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@redhat.com Loading md.ko module md: md driver 0.90.1...
2017 Jul 13
0
Rebalance task fails
...t; > wrote: > > > > On 7 July 2017 at 15:42, Szymon Miotk <szymon.miotk at gmail.com> wrote: > >> > >> Hello everyone, > >> > >> > >> I have problem rebalancing Gluster volume. > >> Gluster version is 3.7.3. > >> My 1x3 replicated volume become full, so I've added three more bricks > >> to make it 2x3 and wanted to rebalance. > >> But every time I start rebalancing, it fails immediately. > >> Rebooting Gluster nodes doesn't help. > >> > >> # gluster volume rebal...
2017 Jun 25
0
Writing my 3D plot function
...rcle of radius >1X1<-turnPolarToX(1,1:360)Y1<-turnPolarToY(1,1:360)Z1<-rep(0,360) ># Putting the second circle on 3d space. Circle of radius >1X2<-turnPolarToX(1,1:360)Y2<-rep(0,360)Z2<-turnPolarToY(1,1:360) ># Putting the third circle on 3d space. Circle of radius >1X3<-rep(0,360)Y3<-turnPolarToX(1,1:360)Z3<-turnPolarToY(1,1:360) >Min<-min(X1,Y1,Z1,X2,Y2,Z2,X3,Y3,Z3)Max<-max(X1,Y1,Z1,X2,Y2,Z2,X3,Y3,Z3)plot3d(X1,Y1,Z1,xlim=c(Min,Max),ylim=c(Min,Max),zlim=c(Min,Max),box=TRUE,axe=FALSE,add=TRUE,col="red",type="l")plot3d(X2,Y2,Z2...
2007 Jan 23
0
Questions about xtable and print.xtable
I have been using the wonderful xtable package lately, in combination with Sweave, and I have a couple of general questions along with a more particular one. I'll start with the particular question. I basically have a 1x3 array with column names but no row names. I want to create a latex table with column setting set to "|rrr|". I want the column names to appear, but the row names not to appear. The code I am trying is this: library(xtable) x <- matrix(c(1:3), c(1,3), dimnames=list(NULL,c(1:3)))...
2009 Apr 30
0
plot scaling bug when using par(mfg)
...F the most recently generated plot had the same x and y limits. This affects all plots except the most recently created one. The error is reproduced whether you set the plot up using: par(mfcol=c(1,3)) -or- par(mfrow=c(1,3)) -or- layout(matrix(c(1,3),1,2)) I've tested this with 2x2, 1x2, 1x3 plots and all reproduce the error Tested on R 2.8.0 on OSX and R 2.7.1 on WinXP and both reproduce the error See ### comments for the errors below. cheers, Mark # draw 3 simple plots par(mfcol=c(1,3)) plot(1:100, 1:100) plot(1:200, 1:200) plot(1:300, 1:300) # add points to first plot which s...
2009 Aug 21
0
data layout for crossed factors w/interaction in linear mix models
...ng a matrix with 3 columns: y intercept ai's bj's abij's y111 1 1 1 1 (1x1) y112 1 1 1 " y121 1 1 2 2 (1x2) y122 1 1 2 " y123 1 1 2 " y131 1 1 3 3 (1x3) . . . . . . . . . . 2) using the design matrix from Y = XBeta +Zb. That is, using the same first two columns as above, but substituting 1020 columns (10 for ai's, 10 for bj's and 100 for abij's) for the last three columns. I get the messa...