search for: pma3622

Displaying 20 results from an estimated 23 matches for "pma3622".

2008 Jun 17
1
array elements incorrect
Hello everyone, I have a question as to what code should be used if one wanted to subset from a dataframe of 7000rows by 38 columns.For example if you wanted to generate a array of 100 by 38 would you not use the following: Z<-(dat,dim=c(100,38)) where dat is the dataframe of 7000by 38 Whenever I do this and type show(Z) I get a output of 100 by 38 they all say "integer,7000" as
2008 May 09
7
histogram
Dear R-expert, For histogram function, can we get the table of bin and frequency like in excel, together with the histogram? Therefore, we can check the number of data included. Thank you so much for your attention and help. ____________________________________________________________________________________ [[elided Yahoo spam]]
2008 Jun 02
3
print and read.table commands
  Hello to everyone, I am new to programming in R and am having trouble with the following two commands 1.I am running a simple 1 line script "read.table(file="C:\\Document and Settings\\All Users\\Desktop\\colon cancer.txt) and the error message I get is "Error in file (file, "r"): cannot open the connection In addition warning message In file (file, "r"):
2008 Jun 18
1
subarray
Hello everyone, I am trying to subset a matrix with the following code: dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\Yeast\\Yeast.txt",header=T,row.names=1) file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\Yeast\\Yeast.txt") Z.matrix<-as.matrix(dat) Y<-array(dat,dim(,[46:63]) but I keep getting the error message: error in dim
2008 Jul 13
1
(no subject)
Hello everyone, I am using the following code to try to calculate the mean : dat<-read.table(file="C:\\Documents and  Settings.....txt") dat<-as.numeric(dat) x1.m<mean(dat) I am getting the following error message Error in eval.with.vis(expr,envir,enclos): (list) object cannot be coerced to type"double' I do not understand what is wrong as I thought that I have changed
2008 Jul 29
2
accessing list elements
Hello everyone, I have a list which I am trying to calculate a max value.I have the list as w<-c(v[[1]][1],...v[[100]][1]). The problem I am getting is that the function max is saying the list is an "invalid type (list) of  argument".When I show the element v[[1]][1] it shows as $statistic,V,736.I am only wanting to use the number 736 from v[[1]][1] but am not sure how to access that
2008 Jul 29
1
list
I have run a wilcox test on a dataframe and I have returned to me data which I am wanting to sort and/or pick the max. I have tried the following code to pick the max: v<-wilcox.test.run w<-max(v,na.rm=FALSE)   I have also tried w<-pmax(p-value,na.rm=FALSE) for the second line   and this returns the following error:invalid 'type'  (list) of argument This error is understandable
2008 Jun 02
2
more columns that column names
Hello to everyone, I have gotten my file to print to screen but when I use read.table I am getting an error message that says there are" more columns than column names."This is a file that was not created by me so I am not sure how to investigate and solve this problem.I looked in the help file and it suggested an auxilliary function called count.fieldsThe code that was used was:
2008 Jul 26
1
error in test
Hello everyone, I am trying to use the following code: dat<-read.table(file="C:\\Documents.....txt") class2<-read.table(file="C:\\Documents.....txt") class1<-read.table(file="C:\\Documents .....txt") dat<-as.data.frame(dat) dimnames(dat)[[1]]<-paste("g",c(1:nrow(dat)),sep="")
2008 Jul 08
1
Plot
Hello everyone, I am trying to plot an MvA plot with the following code: dat<-read.table(file="C:\\Documents and Settings\\.....txt",header=T) file.show(file="C:\\Documents and Settings\\Ow.......txt") library(sma) data(MouseArray) dat.o<-as.list(dat) dat.o$R.2<-as.matrix(dat[,c(1:5)]) dat.o$G.2<-as.matrix(dat[,c(6:10)]) dat.o$Gb.2<-as.matrix(dat[,c(11:15)])
2008 Jun 08
1
eliminating and relabeling the first column
Hello everyone, I have a data frame in which I am wanting to eliminate the row labels and then relabel the rows with g1-g2000.I have used the following code: dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1) file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt") I thought that this
2008 Jun 07
1
error message with dat
Hello everyone, I have two problems which I am unable to solve : 1.I am trying to add the  row labels (g1-g2000) to the very left of a data table. The data table is 2000 rows  by 62 columns.I have used the following code. read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1) rowname(dat) <- paste("g", c(1:nrow(dat)),
2008 Jun 21
2
boxplot problem
Hello everyone, I am trying to plot a boxplot but am coming up with the error : "could not find function dat" I have used the following code. dat<-read.table(file="C:\\Documents and Settings\\.......txt",header=T,row.names=1,blank.lines.skip=F,na.strings="NA") file.show(file="C:\\Documents and Settings\\......txt")
2008 Jun 08
1
label points on a graph
Hello everyone, I have a plot and I am wanting to label points as 1 through 20 I have the following code for the plot: dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1) file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt")
2008 Jun 11
1
computing and showing mean
Hello to everyone, I am trying to compute a mean and show it to the screen and then save to later be used as a boxplot.I have used the following code: dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\Yeast\\Yeast.txt",header=T,row.names=1) file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\Yeast\\Yeast.txt") x<-dat[2,23:46]
2008 Jun 17
1
replace column headers
Hello everyone,=I have a question as to how to remove the column headers in a data file and then replace those with titles from another file in this case the file labeled ann  ( in which the titles are all in one column).I am unsure which function to use.I tried rm () to remove the column headers but they are numbers and  the error message said to only use rm for charactors not numbers Below is
2008 Jun 17
1
error in casting matrix
Hello everyone, I am trying to cast a data frame to a matrix I have used the following code: dat<-read.table(file="C:\\Documents and Settings\.....txt",header=T,row.names=1) file.show(file="C:\\Documents and Setting....t.txt") Z.matrix<-as.matrix(dat.data.frame) but I keep getting the error error in as.matrix(dat.data.frame): object dat.data.frame not found What am I
2008 Jun 18
1
matrix
Hello everyone,I am having a difficult time understanding what commands are used to add and remove elements froma matrix or data frame.For ex ample if I want to remove element=[1,50] or elements [1,50:63] or elements  [2:4,20:35]from a matrix and replace with NA or any number what command must I use to remove the element and then to replace the element..Must I use two commands or can I use one
2008 Jun 19
1
(no subject)
Hello everyone, I am wanting to replace an element in a matrix with NA. I have used the following code dat<-read.table(file="C:\\Documents and Settings\\....txt",header=T,row.names=1) file.show(file="C:\\Documents and Settings\\....txt") Z.matrix<-as.matrix(dat) Y<-dat[,46:63] X<-dat[1,51] dat[1,51]<-NA Whenever I use this code I get the original value when I
2008 Jun 22
1
boxplot colors
Hello everyone, I am trying to color two boxplots on the same graph two different colors. I have tried the following boxplot(5,1:19,5,20:39,col=c("red","blue")) but all I get are two blue boxes. Any help would be appreciated Paul [[alternative HTML version deleted]]