similar to: large matrix

Displaying 20 results from an estimated 1000 matches similar to: "large matrix"

2012 Jul 12
3
Add row into a Matrix witout headers from Function
Hi, Here i have a matrix like this, OLDMatrix <- X1 X2 X3 ----- ------ ------ 22 24 23 25 27 27 10 13 15 the thing is, im running two function(SUM,COUNT) to get output in another matrix called NEWMatrix NEWMatrix <- c("SUM",colSums(OLDMatrix )) NEWMatrix <- c("COUNT",colSums(!is.na(OLDMatrix
2007 Feb 27
5
Multiple conditional without if
Dear all, i am stuck with a syntax problem. i have a matrix which has about 500 rows and 6 columns. now i want to kick some data out. i want create a new matrix which is basically the old one except for all entries which have a 4 in the 5 column AND a 1 in the 6th column. i tried the following but couldn´t get a new matrix, just some wierd errors:
2010 Jan 28
2
NA Replacement by lowest value?
Hi all, I need to replace missing values in a matrix by 10 % of the lowest available value in the matrix. I've got a function I've used earlier to replace negative values by the lowest value, in a data frame, but I'm not sure how to modify it... nonNeg = as.data.frame(apply(orig.df, 2, function(col) # Change negative values to a small value, close to zero { min.val =
2007 Aug 24
1
uneven list to matrix
Hello, I am sure I am not the only person with this problem. I have a list with n elements, each consisting of a single column matrix with different row lengths. Each row has a name ranging from A to E. Here is an example: alph[[1]] A 1 B 2 C 3 D 4 alph[[2]] A 1 C 3 D 4 alph[[3]] A 1 D 4 E 5 I would like to create a matrix from the elements in the list with n columns such that the row names
2010 Jan 08
2
A better way to Rank Data that considers "ties"
This will start off sounding very easy, but I think it will be very complicated. Let's say that I have a matrix, which shows the number of apples that each person in a group has. OriginalMatrix<-matrix(c(2,3,5,4,6),nrow=5,ncol=1,byrow=T,dimnames=list(c("Bob","Frank","Joe","Jim","David"),c("Apples"))) Apples Bob 2
2007 Sep 14
1
Copying row names
I have been trying to copy the row names of one matrix to another matrix but having difficulty. The original matrix contains a row name which I would like to replicate in the new matrix. I use the following approach? The two matrices have identical dimensions. rN <- row.names(origMatrix) row.names(newMatrix) <- rN However the new matrix does not take on the labels. I have also tried,
2013 Feb 13
1
WriteXLS: 'object not found' error within function
Dear All, I am using WriteXLS to write tables with multiple sheets with the command: WriteXLS("tables", ExcelFileName = fileName, SheetNames = tableList, perl = "perl", verbose = FALSE, Encoding = c("UTF-8", "latin1"), row.names = TRUE, col.names = TRUE, AdjWidth = TRUE, AutoFilter = FALSE, BoldHeaderRow = FALSE,
2013 Oct 15
1
Problem with lapply
Hi together I'm pretty new to R, so excuse me if it is a basic question. I have a big dataset (extract of it found in the attachment) of returns from firms. I'd like to compute the Pearson correlation of each firm with the "Market" and the corresponding p-Value. So I thought of making a list of 'cor.test's and then extract the needed values with a for loop. What I did so
2004 Sep 29
1
glm.fit and predict.glm: error ' no terms component'
Hi when I fit a glm by glm.fit(x,y,family = binomial()) and then try to use the object for prediction of newdata by: predict.glm(object, newdata) I get the error: Error in terms.default(object) : no terms component I know I can use glm() and a formula, but for my case I prefer glm.fit(x,y)... thanks for a hint christoph $platform [1] "i686-pc-linux-gnu" $arch [1]
2003 Apr 26
4
array to data.frame
Hi, How i can convert a array in to data.frame structure? For example, vinteesete<-array(c(1,0,6,4,22,29,11,7,6,2,8,7,21,25,5,6,1,0,11,6,14,24,13,10,2,2,15,13,14,17,9,8,1,2,16,9,14,23,9,6,6,2,17,13,10,20,7,5), dim=c(2,4,6), dimnames=list(grupo=c("I","II"), opiniao=c("Ma","Regular","Boa","MBoa",),
2005 Dec 08
3
Reshaping data
Dear all, given I have data in a data.frame which indicate the number of people in a specific year at a specific age: n <- 10 mydf <- data.frame(yr=sample(1:10, size=n, replace=FALSE), age=sample(1:12, size=n, replace=FALSE), no=sample(1:10, size=n, replace=FALSE)) Now I would like to make a matrix with (in this simple example) 10 columns (for the
2011 Jun 16
1
Matching vector order by indicators in a matrix
Hi all~ I have a bit of stupid question. And I promise, I have struggled through this and it sort of pains me to post this question... I have the following vector which is are the estimated parameter values output from "optim". $Rates [1] 0.006280048 0.330934659 I want to match the order in the vector by the number in the following matrix: $Index.matrix ALPHA 1 1 BETA 2
2005 Mar 18
2
logistic model cross validation resolved
This post is NOT a question, but an answer. For readers please disregard all earlier posts by myself about this question. I'm posting for two reasons. First to say thanks, especially to Dimitris, for suggesting the use of errorest in the ipred library. Second, so that the solution to this problem is in the archives in case it gets asked again. If one wants to run a k-fold cross-validation
2012 Jun 26
0
ALQUILER PARA GRUPO HOTELERO o INVERSORES RENTISTAS
Mail ¿Problemas de Visuallizacion?   Ver OnLine   | Enviar a un Amigo  |            ALQUILER PARA GRUPO HOTELERO                  Mexico al 800 entre Tacuari y Piedras a cuadra y media de 9 de Julio     Edificio en Block a Estrenar PB mas 7 Pisos, son 48 suites, un Salon de 350m2, Terraza con Pileta y Deck GRAN CATEGORÍA, Excelente Lobby con doble altura     Se entrega con muebles de cocina,
2008 Jan 13
2
Retrieve only part of a matrix
Hi All, I'm new with R; this is a basic question. I was given a matrix I of (nrow, ncol), I would like to create another matrix A with some data in the matrix I, say [1,4] (row 1, column 4) to [271,19000] (row 271, column 19000). How do I do this? Please help. Thank you very much. --mc [[alternative HTML version deleted]]
2006 Dec 15
2
About "Convert 8->16 bits"
Hi everybody, I have been using speex-1.2beta1 and my input data is 8-bit unsigned so I know that I should convert from 8 to 16 bits. I've done the convertion as following. for(int i=0; i<160; ++i) { input_frame[i] = (short)( (data[2*i] << 8) | data[2*i+1]); } When my codec application didn't work right, I think that the reason is an error at this
2011 Mar 25
2
Restrict clients access during mailboxes convertion ?
Hello Is there a way to restrict access to Dovecot server during mailboxes convertion ? I need dovecot to be running to convert mailboxes from a format to another, but I would like to block all our LAN clients until the end of convertion. If there is no internal Dovecot mechanism I will use some firewall rule on the server. Thanks
2004 Dec 02
1
SJava convert problem
Consider this Java class: class myClass { final public static String[] testString () { return new String[]{"my", "name", "is"} ; } final public static int[] testInt () { return new int[]{5, 10, 15}; } final public static char[] testChar () { return new char[]{'x', 'y', 'z'}; } }
2008 Jun 13
2
Rails 2.1: invalid date automatically convertion
Hi all, Rails 2.1 seems to converts the following parameters {''birth(1i)''=''1990'', ''birth(2i)''=>''2'', ''birth(3i)''=>''31''} into date ''1990-03-02'' automatically. Is it able to inhibit this convertion? -- makoto kuata
2004 Aug 06
4
speex_encode / speex_encode_int ... already sorry =)
Hi, i know this question has already been asked, i've checked mailing list logs but ... I didn't figure out the solution for my question. I want to use basic functionnality of speex, only VAD, no pre/post filter, even no VBR. But i *really* want to use less mem/cpu i can. So in which format should i pass data to speex_encode(_int) , float or short ? I quickly looked at the source code