search for: 3x4

Displaying 20 results from an estimated 21 matches for "3x4".

Did you mean: 34
2012 Jan 23
1
R not giving significance tests for coefficients/estimates?
> 3x4 Error: unexpected symbol in "3x4" R has no idea that you equate "x" as multiplication.. use an astrix > 3*4 [1] 12 dominic wrote > > This is basically my code: > > library(MASS) > lmsreg(formula = b0 ~ b1 + b3 + b1xb2, data=mydata) > > b1xb2 is...
2011 Jul 01
2
Eliminating a row if something happens
...of rows is more than 16 and less 28 I conservate the row #but How I say if else "remove" the line (I tried this) but doesn´t works...I´m really a asn else if(data[i,]=data[-i,]) } You see imagine my data matrix is 10x4 and only 3 rows passes the condition...the resulting matrix will be 3x4 I tried also to save the new matrix as csv like this write.csv(data, file = "input1.csv") How should I proceed to save as a txt? Many thanks I really like this problems but I feel my mind is restricted to more easy things¡¡¡jajaj [[alternative HTML version deleted]]
2006 Sep 20
1
how to delete some columns from a matrix based on some other indicator variable
Hello, I am not very familiar with R and need help in deleting a few columns in a matrix. Suppose I have a indicator variable called r and it's defined as r = (0, 0, 1, 1). A matrix D is a 3X4 matrix. If I want a new matrix which contains only the columns of D corresponding to the elements of r that equal to 1. how can i write a loop which creat a new matrix that contains only the last 2 columns of D in this case? thanks
2007 Jun 21
1
Using the object of character data type as the name of the slot
...name of first slot" and a list object: > class( try1) [1] "list" what I want to do is to use the chara as a slot's name of "try1". Of course I could do it like: > try1$"The name of first slot" <- matrix("", 3, 4) to create a slot of 3x4 matrix with the name "The name of first slot" However, I would like to know how could I utilize the object chara , and to use the characters it contains as the name of the slot of try1. I appreciate for any suggesion. Thanks. -- Lam C. Tsoi (Alex) Medical University of South Caroli...
2011 Aug 29
1
Generating contingency tables from the null
Hi all, I have a 3x4 contingency table with row totals all being 100. I want to generate 3 x 4 tables from the null distribution. Which R function can do this? -- Thanks, Jim. [[alternative HTML version deleted]]
2011 Apr 20
1
avoiding if-then statements for looped chi-square tests
...fferent RxC tests based on how many genotypes (e.g. 2 genotypes vs 4 gives 8 cells, 2 by 2 gives you a 4 cell test etc.). Instead of writing a series of if then statements for the chi-square test on the obs-exp numbers for each possible gene pair (i've started to do this....2x2, 2x3, 3x2, 2x4, 3x4,etc) is there a generic way to pass the number of unique elements for each gene (which would define the number of genotypes for that gene) into a calculation of the obs-exp and then the chisquare test? Here is some example code to illustrate what I am trying to work with. ###example dataset####...
2009 Feb 12
1
Latex or html output for freq() in prettyR
...am trying to export the result of freq() to html but the html doesn't look look the console output. See the following example library(prettyR) library(Hmisc) x <- matrix(sample(1:3, 12, replace=TRUE), nrow=3, dimnames=list(c('A','B', 'C'),letters[1:4])) # create a 3x4 matrix with random numbers beteen 1 and 3 x # see what it looks like fx=freq(x) # create frequency table with frequencies and % per column fx # looks pretty good, now I want to export it to latex or html html(fx) # I expected this to look like console output but it doesn't. Can anything be...
2005 Apr 26
2
Advice for calling a C function
...the world as if the assignments are working properly, but when I try and print the matrix I get very strange results. If mat is 3x3 or 4x4 everything seems ok. But if mat is not symetrical the resulting x matrix is very strange. In the case of a 5x4 mat only the first column works out, and for 3x4 mat the second and third positions in the first column are replaced by the first and second positions of the last column. I'm guessing that I've messed up something in my use of pointers, or perhaps the for loop, but I can't for the life of me figure out what!! Once I sort this out...
2005 Apr 26
2
Advice for calling a C function
...the world as if the assignments are working properly, but when I try and print the matrix I get very strange results. If mat is 3x3 or 4x4 everything seems ok. But if mat is not symetrical the resulting x matrix is very strange. In the case of a 5x4 mat only the first column works out, and for 3x4 mat the second and third positions in the first column are replaced by the first and second positions of the last column. I'm guessing that I've messed up something in my use of pointers, or perhaps the for loop, but I can't for the life of me figure out what!! Once I sort this out...
2017 Sep 13
0
compounding precipitation based on whether falls within a day
...ater. But anyway... ## Convert POSIXct vector to dates ## There are 22 different days, not 21 date <- as.Date(prec_idx) ## Sum results by date at each i,j of the last 2 array dimensions z <- lapply(unique(date),function(d) apply(prec[date==d,,],2:3,sum) ) ## This gives a list with 22 3x4 matrices of sums. ## Convert to 3x4x22 array with prec_daily <- array(unlist(z),dim=c(3,4,22)) ## This is the **almost** part. You can use the aperm() function to reshape the array if you like. I leave those pleasures to you. HTH. Cheers, Bert Bert Gunter "The trouble with having an...
2002 Oct 08
5
Filesystem for Samba server
> Hi, > Sorry if this is a stupid question (bit of a newbie). I'm building a Samba > fileserver on a box with a hardware raid array of about 65GB which I'm > hoping to share out to the local LAN . I was wondering if the filesystem > used (ext2,ext3, reiserfs etc) on the partition where the Samba shares > will reside makes much of a difference? I'd obviously like to
2017 Sep 13
2
compounding precipitation based on whether falls within a day
Using the small reproducible example below, I'm wondering how best to complete the following task: In the small reproducible example below, the 3D array prec has indexes that correspond to time, x, y (i.e., prec[time, x, y]). In this case, the time index is hours since some predefined start time. I'd like to add up all the time indexes in 'prec' based on whether or not the
2008 Apr 06
3
Need help with Cisco 7960
Hello all, I need some help with my Cisco 7960 enabling TFTP. Does anyone know what numbers to press in the menu? Or can I enable this through telnet? Many thanks, Christian
2004 Jan 23
0
Majordomo results: Hi
...aaxu8z2ivdwegsm8mz0vd1civcw19e' not recognized. >>>> ycIEAFWL7P91CGoBagDoSx8AAMnCBABVi+yLVQiLEv91CP9SCMnCBABVi+yDxPiNVfj/dQyP **** Command 'ycieafwl7p91cgobagdosx8aamncbabvi+ylvqilev91cp9scmncbabvi+ydxpinvfj/dqyp' not recognized. >>>> AsdCBAAAAACLVQiLEmoA/3UQ/3X8/3X4/3UI/1IUycIMAFWL7IPE+FaNdfjHBgAAAADHRgQA **** Command 'asdcbaaaaaclvqilemoa/3uq/3x8/3x4/3ui/1iuycimafwl7ipe+fandfjhbgaaaadhrgqa' not recognized. >>>> AAAAi1UIixKNRfhQagL/dfz/dfj/dQj/UhSLBl7JwgQAVYvsagJqAP91COiN////ycIEAFWL **** Command 'aaaai1uiixknrfhqagl/dfz/dfj/dqj/uhslbl7...
2002 May 05
2
Passing a Matrix to .C?
Hi, Is it possible to pass a matrix object in R to the .C function? Moreover is it possible to have .C return a matrix object back into R? I'm using Rv1.4.1 on a PC platform. Best wishes, Jess _______________________________ Jess Mar Department of Mathematics & Institute for Molecular Bioscience University of Queensland Q 4072 AUSTRALIA
2009 Oct 05
1
gsub - replace multiple occurences with different strings
Hi, I search a way to replace multiple occurrences of a string with different strings depending on the place where it occurs. I tried the following; x <- c("xx y e d xx e t f xx e f xx") x <- gsub("xx", c("x1", "x2", "x3", "x4"), x) what I want to get is; x = x1 y y e d x2 e t f x3 e f x4 but what I get is; x = x1 y y e
2012 Sep 02
0
most efficient plyr solution
...he most efficient way to run a non-vectorized function (here: fisher exact test p-value) iteratively using 4 matrices with identical dimensions. And as a result I aim for an array with identical dimensions containing the corresponding p-values. Please consider some code using a trivial example with 3x4 arrays below. Eventually I would like to run code on 2e3 x 7e6 arrays, for which someone suggested Amazon EC2 already... Q1: would you agree that fisher.test() is not vectorizable? e.g. fisher.test( matrix(c(Ax,Ay,Bx,By),ncol=2) ) does not work Q2: direct use of Ax, Ay, Bx, By as input instead of...
2010 Mar 15
5
storing matrix(variables) in loop
Hello R-helpers, I have the following code that works well, b <-list() for (i in 1:3){ a <- matrix(runif(1),3,3) b[[i]] <- a } b however, I need to do something similar with two loops and I was looking for something that would look like b <- list() for (i in 1:3){ for (j in 1:4){ a <- matrix(runif(1),3,3) b[[i,j]] <- a #but this doesn?t work } } Anyway, I wanted
2019 Feb 01
3
[RFC] Vector Predication
On Fri, Feb 1, 2019 at 1:19 AM Bruce Hoult <brucehoult at sifive.com> wrote: > On Thu, Jan 31, 2019 at 11:53 PM Luke Kenneth Casson Leighton via > llvm-dev <llvm-dev at lists.llvm.org> wrote: > > > > --- > > crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68 > > > > On Thu, Jan 31, 2019 at 10:22 PM Jacob Lifshay
2018 Dec 05
5
[RFC] Matrix support (take 2)
Hi all, After the previous RFC[1], there were multiple discussions on the ML and in person at the DevMtg. I will summarize the options discussed and propose a path forward. =========================== Options =========================== A. Extend VectorType to be multidimensional B. Flatten matrices into the current VectorType. Matrix shape and layout information is passed to matrix