Displaying 20 results from an estimated 100000 matches similar to: "(no subject)"
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 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 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 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 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 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 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 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 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
2009 Jan 13
3
Comparing elements for equality
Suppose I have a dataframe as follows:
dat <- data.frame(id = c(1,1,2,2,2), var1 = c(10,10,20,20,25), var2 =
c('foo', 'foo', 'foo', 'foobar', 'foo'))
Now, if I were to subset by id, such as:
> subset(dat, id==1)
id var1 var2
1 1 10 foo
2 1 10 foo
I can see that the elements in var1 are exactly the same and the
elements in var2 are exactly
2008 Jun 16
1
error in dat
Hello everyone,
I have the following code which keeps giving me an error.
The code is:
dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\eisen.txt",header=T,row.names=1,blank.lines.skip=F,na..strings="NA")
dimnames(dat)((1)) <-as.character(dat(,1))
dat<-dat(,-1)
dat<-as.data.frame(dat)
file.show(file="C:\\Documents and Settings\\Owner\\My
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 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 03
1
adding column and pulling data from table
Hello to everyone,
I have a general question about how to add a column to a table.I have a table that has 62 columns and 2000 rows.I am wanting to add a column on the left most row.I am wanting to label the rows g1 to g2000 I have the code of ("g",c(1:nrow(dat)),sep="") for the right side of the assignment but do not know what function to use for the left side of the equation.I
2014 Aug 28
2
problema al copiar datos de tipo caracter de un archivo a otro
Estimada comunidad, tengo un problema que no puedo resolver. Tengo
muchos archivos (los llamaremos "TMP") con los que debo construir un
archivo resumen que llamare "DAT".
A partir de los nombres de los archivos TMP construyo las primeras 4
columnas de DAT, luego, con datos del interior del archivo TMP construyo
las columnas 5 a 9 de DAT.
El problema insoluble que tengo es que
2008 Dec 09
2
Need help optimizing/vectorizing nested loops
Hi,
I'm analyzing a large number of large simulation datasets, and I've
isolated one of the bottlenecks. Any help in speeding it up would be
appreciated.
`dat` is a dataframe of samples from a regular grid. The first two
columns are the spatial coordinates of the samples, the remaining 20
columns are the abundances of species in each cell. I need to calculate
the species richness in
2012 Aug 22
3
Question concerning anova()
Hi
I am comparing four different linear mixed effect models, derived from updating the original one. To
compare these, I want to use anova(). I therefore do the following (not reproducible - just to
illustration purpose!):
dat <- loadSPECIES(SPECIES)
subs <- expression(dead==FALSE & recTreat==FALSE)
feff <- noBefore~pHarv*year # fixed effect in the model
reff <-
2005 Jun 23
1
the dimname of a table
i have a data frame(dat) which has many variables.and i use the following script to get the crosstable.
>danx2<-c("x1.1","x1.2","x1.3","x1.4","x1.5","x2","x4","x5","x6","x7","x8.1","x8.2","x8.3","x8.4","x11",
2012 Aug 21
2
define subset argument for function lm as variable?
Hi
I want to do a series of linear models, and would like to define the input arguments for lm() as
variables. I managed easily to define the formula arguments in a variable, but I also would like to
have the "subset" in a variable. My reasoning is, that I have the subset in the results object.
So I wiould like to add a line like:
subs <- dead==FALSE & recTreat==FALSE
which
2005 Apr 19
1
How to make combination data
Dear R-user,
I have a data like this below,
age <- c("young","mid","old")
married <- c("no","yes")
income <- c("low","high","medium")
gender <- c("female","male")
I want to make some of combination data like these,
age.income.dat <- expand.grid(age,