search for: iyyer

Displaying 20 results from an estimated 24 matches for "iyyer".

Did you mean: iyer
2006 Apr 13
5
Questions on formula in princomp
I hope this time I'm using the "iris" dataset correctly: ir <- rbind(iris3[,,1], iris3[,,2], iris3[,,3]) lir <- data.frame(log(ir)) names(lir) <- c("a","b","c","d") I'm trying to understand the meaning of expressions like "~ a+b+c+d", used with princomp, e.g. princomp(~ a+b+c+d, data=lir, cor=T) By inspection, it
2008 Sep 08
3
extracting max row from data matrix
dear group, i have a data matrix with some replicate items with different values. I want to extract the row with max value. for example: > x fruit weight 1 apple 1.3 2 apple 1.5 3 apple 1.6 4 orange 1.4 5 orange 1.6 x is a data frame. I want to extract unique items from fruits that has max weight. that is: 3 apple 1.6 5 orange 1.6 I want to be able to use
2005 Jul 27
2
Error in FUN(newX[, i], ...) : `x' must be atomic
Hello Group, What is the meaning of the error. is there any place to look for this. I guess 'atomic' seems to be OOP related concept. thank you srini
2006 Jul 06
3
Comparing two matrices
hi: I have matrix with dimensions(200 X 20,000). I have another file, a tab-delim file where first column variables are row names and second column variables are column names. For instance: > tmat Apple Orange Mango Grape Star A 0 0 0 0 0 O 0 0 0 0 0 M 0 0 0 0 0 G 0 0 0 0 0 S 0 0 0 0 0
2006 Jun 07
2
help with combination problem
hello: I have 3 data.frame objects. First df object: Of dim (149,31). Columns 2:31 are marked as T1..T14 and N1..N16. Name T1 T2 N1 T3 N2 N3 N4 T4 mu1 10 10 9 10 9 9 8 10 mu2 11 11 9 11 9 9 9 11 ... muN 12 12 9 11 9 9 8 12 Second df object: of Dim (50000,31). Columns 2:31 are maked as T1...T14 and N1..N16.
2013 Feb 01
2
help on proportions
Hi: Apologies for asking the following question. As?this may sound very basic and stupid for this forum?, I honestly do not know how to solve it and I do not have a teacher who can help me understand. ? I have list of genes (200)?that are involved in a particular process and I call this as a?ProcSet.?? From an independent experiment I found that out of 10,000 genes, 1500 are significant and I
2006 Jul 06
3
Comparing two matrices [Broadcast]
...h(tbm[,2], rownames(tmat)), match(tbm[,1], colnames(tmat)))] <- 1 > tmat Apple Orange Mango Grape Star A 1 1 1 0 0 O 1 1 0 0 0 M 0 0 1 0 0 G 0 0 0 0 0 S 1 1 1 0 0 HTH, Andy From: Srinivas Iyyer > > hi: > > I have matrix with dimensions(200 X 20,000). I have another > file, a tab-delim file where first column variables are row > names and second column variables are column names. > > > For instance: > > > tmat > Apple Orange Mango Grape Star...
2005 Feb 18
7
export to text file
I'm trying to export a large data frame to a text file for permanent storage. The only thing I could find was the treeglia Package but that didn't work. Any suggestions? Thanks! Christina D Smith PhD Student, GRA Statistics Department Kansas State University
2007 Nov 30
2
List operations in R
hello: I am very confused when it comes to list operations in R. I seek help in the following problem. I have two different vectors myIDs - a character vector with no names to their elements x2 - another character vector derived from unlisting a list where an element has both a name and value. I am not happy the way x2 is with names and values to every element. > myIDs[1:10] [1]
2008 Mar 12
3
Converting a data frame with values into a matrix/
Dear Group, I have a data frame like the following: x <- c("Mike","A",0.01) x1 <- c("Carl","A",0.2) x2 <- c("Gene","C",0.3) x3 <- c("James","A",-0.3) x4 <- c("Dough","B",0) xx <- rbind(x,x1,x2,x3,x4) colnames(xx)<-c("Name","Class","NES") xx
2005 Oct 31
7
Downloading zip files
I have not had a great amount of success installing/updating packages from the "Packages" menu of Rgui under Windows XL. (Except for installing from loacal zip files.) But I am not asking for help in using these facilities because I prefer to keep a folder of package zip files. On the other hand I do find it tedious having to right-click "Save link as" on every individual
2005 Feb 21
0
Distribution
You can use table(cut(intensity, breaks)), where `intensity' is the vector of intensity values, and `breaks' are the boundaries of the bins (e.g., c(0, 150, 250, ...)). Andy > From: Srinivas Iyyer > > Dear group, > apologies for asking a simple question. I have a file > where the data looks like this: > Probe Intensity > 0:0 501.0 > 1:0 17760.5 > 2:0 511.0 > 3:0 18468.3 > 4:0 199.8 > 5:0 508.0 > 6:0 17241.8 > 7:0 507.5 > 8:0 17910.0 > 9:0 482...
2005 Nov 09
0
Can I run both R and Python through Emacs
...586-pc-win32 and XEmacs 21.4.17 on i686-pc-cygwin. But this is problably not a direction the help-mailing list of R should pursue. Best, Roland > -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Srinivas Iyyer > Sent: Wednesday, November 09, 2005 12:09 AM > To: r-help at stat.math.ethz.ch > Subject: [R] Can I run both R and Python through Emacs > > Dear Group, > I am new to R and Emacs both. Until now I have been > working through R's interactive space. Today I > configur...
2006 Aug 21
1
Escaping " ' " character
Dear all: I have a character object x with ' (single-quote) character. x <- c('"hydrolase activity","actin binding","3',5'-cyclic-nucleotide phosphodiesterase activity") I want to write a function that will identify ' and replaces with \' myf <- function(term){ if (grep("'",term)) {
2006 Sep 01
1
Reading many files at once
dear group, i have 100 files starting with 'hsa-*'. ex. file: fruit p-value ------------ apple 0.0003 orange 0.004 kiwi 0.0003 peach 0.0004 I want to read all these files and create a single matrix. here each file may have different fruit names. in the matrix i want to have a union of all fruits and those should be the rows in the matrix and file names should be columns.
2007 Sep 05
1
writing elements in list as a data frame
Dear R-helpers, Lists in R are stumbling block for me. I kindly ask you to help me able to write a data-frame. I have a list of lists. > sls[1:2] $Andromeda_maya1 x y [1,] 369 103 [2,] 382 265 [3,] 317 471 [4,] 169 465 [5,] 577 333 $Andromeda_maya2 x y [1,] 173 507 [2,] 540 395 [3,] 268 143 [4,] 346 175 [5,] 489 91 I want to be able to write a data.frame like
2011 Aug 11
1
help with loops
hi I need help with list object. I have a list object > a <- c('apple','orange','grape') > b <- c('car','truck','jeep') > c <- list(a,b) > names(c) <- c('fruit','vehicle') > c $fruit [1] "apple" "orange" "grape" $vehicle [1] "car" "truck"
2004 Nov 30
1
Reading a tab delimitted text
Dear group, I have a tab delimitted text file with 21 column and 1988 rows. When I read the file: D1 <- read.table(file="gist_data1.txt",sep="\t",header=T) > dim(D1) [1] 1811 20 It reads only 1811 rows from that file. I saved this file as CSV file and I read it again using: > D1 <- read.csv(file="gist_data1.txt",sep=",",header=T) >
2008 Jan 24
1
Filling data frame data into a matrix - please help
Dear group, I have a data.frame (d1) with various elements and a matrix (m1) created with NA (or 1s). I want to read each row,column in d1 and fill its numeric value in m1. Could some one help me because I have 130K rows and 500 column data.frame object and I was told that a for loop will take a long time. Thank you. > r1 <- c("A","A","B","B")
2004 Nov 29
4
escaping backslash in a string
How can I get a single backslash in a character string? My goal is to escape dots in a string that will be used as a regular expression. I thought I could do it this way: gsub(".", "\\.", x) Unfortunately, "\\" does not represent a literal backslash as I expected, but rather a pair of backslashes: > "\\." [1] "\\." > "\\" [1]