search for: col10

Displaying 12 results from an estimated 12 matches for "col10".

Did you mean: col1
2007 Jan 06
2
Get column value of col1 .. col10
Hi, I have a table with column name like col1, col2, col3, col4 ... col10. In rails, after I get the instance of the class, I would like to use a for loop to retrieve values from these columns and put them into a hash. The hash will be used for another find call. Is that possible? Thanks. Arnold -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~---...
2012 Oct 18
4
speeding read.table
...le consists of 100 tables, each of which is headed by two lines of characters. The first of these lines is: TABLE NO. 1 The second is a list of column headers. For example: TABLE NO. 1 COL1 COL2 COL3 COL4 COL5 COL6 COL7 COL8 COL9 COL10 COL11 COL12 1.0010E+05 0.0000E+00 1.0000E+00 1.0000E+03 -1.0000E+00 1.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 0.0000E+00 1.0010E+05 1.0001E+01 1.0000E+00 1.0000E+03 -1.0000E+00 1.0000E+00 2.2737E-14 -2.2737E-14 0.0000E+00 1.9281E-08 0.0000E+...
2013 Jan 03
5
splitting matrices
Dear useRs, i want to split a matrix having 1116rows and 12 columns. i want to split that matrix into 36 small matrices each having 12 columns and 31 rows. The big matrix should be splitted row wise. which means that the first small matrix should copy values which are in first 31 rows and 12 columns of the big matrix. similarly 2nd small matrix should contain values from 32nd to 63rd row of the
2012 Jun 07
1
select subrows based on a specific column in a matrix
Hi all, I have a matrix with 10000 rows and 10 columns. The last columns contains another identifiers but the values are not uniques so that I want to generate another matrix with rows with unique values in the last column. If I did tmp<-unique(my_mat$col10) this will give me 8560 unique entries so the ideal matrix will be 8560X10 columns now then. I tried sub_mat<-my_mat[tmp,] but it generated weird results with many "NA" values and the order was not changed. The original matrix was ranked from top so I don't want to lose the o...
2005 May 02
4
"apply" question
...of values in each row of columns 6-10 that were NA??s (2) the sum of all values on columns 1-5 for which there were no missing values in the corresponding cells of columns 6-10. Example: (let??s call the data frame "data") Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8 Col9 Col10 1 2 5 2 3 NA 5 NA 1 4 3 1 4 5 2 6 NA 4 NA 1 The result would then be (for the first row) (1) "There were 2 NA??s in columns 6-10." (2) The mean of Columns 1-5 was 2+2+3=7" (because there were NA??s...
2013 Jan 02
4
list of matrices
dear useRs, i have a list containing 16 matrices. i want to calculate the column mean of each of them. i tried >sr <- lapply(s,function(x) colMeans(x, na.rm=TRUE)) but i am getting the following error >Error in colMeans(x, na.rm = TRUE) : 'x' must be numeric can it be done in any other way? and why i am getting this error?? thanks in advance.. elisa [[alternative
2012 Nov 23
6
Summary statistics for matrix columns
Hi, is there a way I can calculate a summary statistics for a columns matrix let say we have this matrix x <- matrix(sample(1:8000),nrow=100) colnames(x)<- paste("Col",1:ncol(x),sep="") if I used summary summary(x) i get the output for each column but I need the output to be in matrix with rownames and all the columns beside it this how I want it
2009 Nov 05
1
Set colors in a PCA plot based on a gradient vector
....043,0.850) # Set the colors > col2=rgb(0.150,0.306,1.000) > col3=rgb(0.250,0.630,1.000) > col4=rgb(0.450,0.853,1.000) > col5=rgb(0.670,0.973,1.000) > col6=rgb(0.880,1.000,1.000) > col7=rgb(1.000,1.000,0.750) > col8=rgb(1.000,0.880,0.600) > col9=rgb(1.000,0.679,0.450) > col10=rgb(0.970,0.430,0.370) > col11=rgb(0.850,0.150,0.196) > col12=rgb(0.650,0.000,0.130) > colTemperature=c(col1,col2,col3,col4,col5,col6,col7,col8,col9,col10,col11,col12) # Put all colors in a vector > > tempLT50_ACC=fieldTrial0809[idx, c(48)] > tempACC=cut(tempLT50_ACC, breaks=c(...
2006 Mar 28
1
weights in glm (PR#8720)
...NA Col4 0.27695 NA NA NA Col5 0.06056 NA NA NA Col6 -0.19582 NA NA NA Col7 -0.83044 NA NA NA Col8 -1.27914 NA NA NA Col9 -1.93235 NA NA NA Col10 -2.49709 NA NA NA When I omited 'weights=w' above table was filled in with numbers, but the results were wrong (because of taking zeros in regression). Could you tell me what's wrong? Kind regards, Robert
2006 Nov 30
4
Quicker way of combining vectors into a data.frame
Hi, In a function, I compute 10 (un-named) vectors of reasonable length (4471 in the particular example I have to hand) that I want to combine into a data frame object, that the function will return. This is very slow, so *I'm* doing something wrong if I want it to be quick and efficient, though I'm not sure what the best way to do this would be. I know it is the combining into data
2004 Aug 09
5
How to import specific column(s) using "read.table"?
Dear R people, I have a very big tab-delim txt file with header and I only want to import several columns into R. I checked the options for "read.table" and only found "nrows" which lets you specify the maximum number of rows to read in. Although I can use some text editors (e.g., wordpad) to edit the txt file first before running R, I feel it?s not very convenient. The
2005 Apr 14
4
data manipulation
Hello, my question is about the data handling. I have a data set that is lined as: 4 1 17 1 1 -5.1536 -0.1668 -2.3412 -0.5062 0.9621 0.3640 0.3678 -0.5081 -0.2227 0.8142 -0.0389 -0.0445 -0.0578 -0.1175 -0.1232 0.8673 -0.1033 -0.0796 -0.0341 -0.1716 -0.1801 -0.7014 0.6578 0.5611 4 1 17 2 1 -5.1536 -0.1668 -2.3412 -0.5062 0.9621 0.3640 0.3678 -0.5081 -0.2227 0.8142 -0.0389 -0.0445