search for: object3

Displaying 9 results from an estimated 9 matches for "object3".

Did you mean: objects
2006 Aug 05
1
formating for dist function
Hi there I have a list that looks like this object1 object1 78 object1 object2 45 object1 object3 34 object1 object4 45 object2 object2 89 object2 object3 32 object2 object4 13 but i want to create a matrix like this in order to use the dist function of R object1 object2 object3 object4 object1 78 45 34 45 object2 45...
2002 Apr 12
1
Problems with memory
...-5.1.20) and it is started by the command: Rterm --min-vsize=10M --max-vsize=100M --min-nsize=500k --max-nsize=1M I've been had problems when executing a loop like: attach("data.Rdata") for (i in 1:n) { object1<-fun1(data...) object2<-fun2(...object1) object3<-fun3(...object2) object4[,i]<-fun4(...object3) rm("object1","object2","object3") } After few interactions it stops with the message: "Error: cannot allocate vector of size 7890 Kb In addition: Warning message: Reached total allocation of 1...
2009 Jul 30
3
Looping through R objects with $ operator and tags
...lues in a column to the log of the values of another column like so: object$LogDist <- log10(object$Distance) How do I loop through the objects if I have object1, object2, etc to perform this function? object1$LogDist <- log10(object1$Distance) object2$LogDist <- log10(object2$Distance) object3$LogDist <- log10(object3$Distance) I was trying to use the assign and paste functions like so: for (i in c(1:10)) assign(paste("object",i,"$LogDist"),log10(as.name(paste("object",i,"$LogDist"))) but that didn't work out. It creates objects with whol...
2009 Jun 15
1
Create R object
...he following: for (i in 1:length(lst)){ assign(paste("object",i,sep=""),lst[[i]]) } I wonder if there's a way to avoid this loop? 2. I want to validate whether all of the "object"s have the same dimension, that is, whether dim(object1)[1]==dim(object2)[1]==dim(object3)[1]& dim(object1)[2]==dim(object2)[2]==dim(object3)[2] is true. How can I do that easily since the length of lst is not fixed? Thanks. Wayne (Yanwei) Zhang Ttatistical *esearch > CNA > > > E-MAIL CONFIDENTIALITY NOTICE: The contents of this e-mail message and any attachmen...
2012 Feb 24
1
remove multiple objects starting with same name
Hi, I'm trying to figure out syntax R function rm() needs to remove all objects starting with same name. For example, if I have object1, object2, object3, i want to do an operation similar to UNIX rm object* Thanks. -- View this message in context: http://r.789695.n4.nabble.com/remove-multiple-objects-starting-with-same-name-tp4418694p4418694.html Sent from the R help mailing list archive at Nabble.com.
2009 Nov 04
1
s4 generic issue
...ol(r), upper.tri = TRUE, transpose = FALSE, ...)) and then proceed to use setMethod for a class matrix.csr.chol. However, this seems to cause problems in the following instance: if one does the following require(lars) require(SparseM) example(lars) ....[snip] lars> object3 <- lars(x,y,type="for") # Can use abbreviations Error in base::backsolve(r, x, k = ncol(r), upper.tri = TRUE, transpose = FALSE, : NA/NaN/Inf in foreign function call (arg 4) > traceback() 10: .C("bakslv", t = r, ldt = nrow(r), n = k, b = x, ldb = k, nb = nb,...
2010 Jul 12
1
Extract Clusters from Biclust Object
...ing a heatmap, it is possible to specify the cluster to be plotted. However, I'd like to extract the clusters in this manner: Cond.1 Cond.2 Gene - value - value just like drawHeatmap specifies each cluster. Is there a way to extract single clusters? E.g. like saying "Object at object3", meaning cluster no. 3 of my biclust object? Unfortunately, the given answers I found in older posts could'nt help me out... Any help is strongly appreciated! Best regards, Christine -- View this message in context: http://r.789695.n4.nabble.com/Extract-Clusters-from-Biclust-Object-t...
2011 Nov 28
0
extend validObject to validate any object (shallow and deep validation)
...) [1] TRUE Also, here is another (typical) situation where it would be nice to be able to (recursively) check the validity of the object: setClass("Collection", representation(things="list")) mycollection <- new("Collection", things=list(object1, object2, object3)) The problem is that 'validObject(mycollection, complete=TRUE)' will return TRUE, even if one of the 3 objects stored in 'mycollection' is invalid. I could implement my own validity method for Collection objects but that's not a satisfactory solution because it would always do...
2009 Jun 15
0
books on Time serie
...gn(paste("object",i,sep=""),lst[[i]]) > } > > I wonder if there's a way to avoid this loop? > > > 2. > I want to validate whether all of the "object"s have the same > dimension, that is, whether dim(object1)[1]==dim(object2) > [1]==dim(object3)[1]& dim(object1)[2]==dim(object2)[2]==dim(object3) > [2] is true. How can I do that easily since the length of lst is > not fixed? > > Thanks. > > Wayne (Yanwei) Zhang > Ttatistical *esearch >> CNA >> >> >> > > E-MAIL CONFIDENTIALITY NOTIC...