similar to: error in casting matrix

Displaying 20 results from an estimated 100000 matches similar to: "error in casting matrix"

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 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 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 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 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 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 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 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 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]]
2013 Jun 05
2
reshape2 issue continued
Hi again all, Several replied ASAP that I also needed reshape loaded and not just reshape2. Hmmm tried that and I had some output but not the correct format. What I need is to run simulations of time overlap between species as per the simulation program data input constraints: The basis for the simulations is a species by _time-use matrix in which species are arranged in rows, and time
2011 Sep 22
7
need help on melt/cast
Hello, I need to convert dataframe from: ID T0 T1 T2 A 1 2 3 B 4 5 6 C 7 8 9 to: ID Variable Value A T0 1 A T1 2 A T2 3 B T0 4 B T1 5 B T2 6 C T0 7 C T1 8 C T2 9 i tried to use melt cast but it gives me all the time not exactly what I need. Thank
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 Sep 16
2
casting a character vector as an object
Greetings, I need to compare the ratios of vector sizes like this: length(object1) / length(object2) I have many vector objects to compare, so I would like to do it in a loop. I created a loop like this: mat1 <- matrix() for (i in 1:6) { for (j in 1:6) { mat1[i,j] <- length( paste("object",i,sep="")) /
2013 Jan 28
0
[LLVMdev] Value* to Instruction*/LoadInst* casting
Alexandru Ionut Diaconescu wrote: > Hello everyone, > > Can you please tell me if it is possible in LLVM to cast a `Value*` to > an `Instruction*/LoadInst*` if for example `isa<LoadInst>(MyValue)` is > true? http://llvm.org/docs/ProgrammersManual.html#the-isa-cast-and-dyn-cast-templates In my particular piece of code: > > Value* V1 =
2017 Jun 11
2
Force casting a Value*
I am trying to cast a Value* irrespective of its underlying subclass to uint64 and pass it on to a method as an argument. if (StoreInst *store_inst = dyn_cast<StoreInst>(&I)) { Value* vo = store_inst->getValueOperand(); uint64 value = /* cast vo to unsigned int 64 bit */ func(value); } How can I force
2010 Jul 21
0
[LLVMdev] Casting.h illness
Is this a recommended approach/good style/good idea to use dyn_cast_or_null<X>(I) instead of dyn_cast_or_null<X>(*I)? (And other is and cast functions). Eugene On Wed, Jul 21, 2010 at 12:42 PM, Gabor Greif <gabor at mac.com> wrote: > Hi all, > > at the moment I am trying to fix an unnecessary iterator dereferencing > in Casting.h and am uncovering several ugly
2012 Nov 30
0
[LLVMdev] [cfe-dev] UB in TypeLoc casting
On Thu, Nov 29, 2012 at 3:49 PM, David Blaikie <dblaikie at gmail.com> wrote: > Moving to LLVM dev to discuss the possibility of extending the cast > infrastructure to handle this. > > On Tue, Nov 20, 2012 at 5:51 PM, John McCall <rjmccall at apple.com> wrote: >> On Nov 18, 2012, at 5:05 PM, David Blaikie <dblaikie at gmail.com> wrote: >>> TypeLoc
2010 Jul 21
2
[LLVMdev] Casting.h illness
Hi all, at the moment I am trying to fix an unnecessary iterator dereferencing in Casting.h and am uncovering several ugly things. For example, look at this code: > // dyn_cast_or_null<X> - Functionally identical to dyn_cast, except that a null > // value is accepted. > // > template <class X, class Y> > inline typename cast_retty<X, Y>::ret_type