search for: object1

Displaying 20 results from an estimated 48 matches for "object1".

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...
2006 Jan 10
2
Transactions with multiple databases
hi, i have problem with transactions and multiple databases. Object1 and Object2 are two different models/databases with different connections, when i use only one model: Object1.transaction do object1.value1 = "123456" object1.save do_some_error end it''s ok, error is produced, nothing is commited and database is unchanged. when i use...
2011 Oct 28
3
program never enters browser mode when I add browser()
Dear All I have a program that breaks at the following lines of code: bigfunction = { ... object1 = myfunction(x) object2 = strsplit(object1, ",")[[1]] ... } where myfunction is defined elsewhere outside of bigfunction. The error I get is "error in strsplit() -- object1 not found". However, when I insert browser() into my code so that the above reads, bigfunction = {...
2011 Dec 13
4
Keep sourcing when there is an error
Hello, I want to know if there is any way to avoid source() stopping when there is an error. Here is the content of my Main.R script: source("~/R/source/Constructor1.R") # Object1 should be constructed ifelse(exists("Object1"), # It's an S4 object print("Object1 exists"), # I can't avoid using 'validity' print("Object1 doesn't exist.")) source("~/R/source/Main.R") is stopped at the f...
2009 Jul 30
3
Looping through R objects with $ operator and tags
Hi all, Suppose I want to set the values 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,&quot...
2016 Apr 14
2
Previously extended schema not working in 4.4.0
On Thu, 2016-04-14 at 18:07 +0100, Jonathan Hunter wrote: > On 14 April 2016 at 13:37, Jonathan Hunter <jmhunter1 at gmail.com> > wrote: > > > # samba-tool dbcheck --cross-ncs > > Checking 4079 objects > > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00290001 > > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x0029000a > >
2010 Mar 18
1
Rcmdr plugins produce error
...achingDemos FWIW, I'm on Windows XP with R version 2.10.1 R Commander Version 1.5-4. Other than reporting this behavior, I was wondering if anyone knew how to restart Rcmdr (minus plugins) without having to restart RGUI? Rob Baer > Commander() Warning in if (where < 1) rbind(object2, object1) else rbind(object1[1:floor(where), : the condition has length > 1 and only the first element will be used Warning in 1:floor(where) : numerical expression has 2 elements: only the first used Warning in (floor(where) + 1):n : numerical expression has 2 elements: only the first used Warnin...
2016 Apr 15
2
Previously extended schema not working in 4.4.0
...sfully fixed some errors; there were 110 previously, however > there are still 69 remaining after a second pass of dbcheck --fix. > > The remaining errors seem to be mainly of this form: > > ERROR: duplicate attributeID values for myattrib in > replPropertyMetaData on > MYOBJ=object1,OU=myou,DC=mydomain,DC=org,DC=uk > > Fix replPropertyMetaData on > MYOBJ=object1,OU=myou,DC=mydomain,DC=org,DC=uk by removing the > duplicate value 0x00290003 for myattrib (keeping 0xbd27f44d5)? [YES] > [...] > ERROR: incorrect attributeID values in replPropertyMetaData on > M...
2002 Apr 12
1
Problems with memory
...y computer has 128 Mb of memory. I'm using the R under the emacs (ESS-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...
2016 Apr 14
0
Previously extended schema not working in 4.4.0
...ss-ncs --fix' and it has successfully fixed some errors; there were 110 previously, however there are still 69 remaining after a second pass of dbcheck --fix. The remaining errors seem to be mainly of this form: ERROR: duplicate attributeID values for myattrib in replPropertyMetaData on MYOBJ=object1,OU=myou,DC=mydomain,DC=org,DC=uk Fix replPropertyMetaData on MYOBJ=object1,OU=myou,DC=mydomain,DC=org,DC=uk by removing the duplicate value 0x00290003 for myattrib (keeping 0xbd27f44d5)? [YES] [...] ERROR: incorrect attributeID values in replPropertyMetaData on MYOBJ=object1,OU=myou,DC=mydomain,DC...
2018 Mar 20
0
Struggling to compute marginal effects !
...e in the email I > sent you. It should be just "Inc". > > The situation looks like this > > Data$Inc <- ordered(Data$Inc = > c("Not_reliable_at_all","Less_reliable","Somehow_reliable","Very reliable")) > > First model > object1 <- polr(Inc ~ Adopt ,Data,Hess = T,method = "logistic") > > Marginal effect for object1: > ocME(object1) > Error in eval(predvars, data, env) : > numeric 'envir' arg not of length one > > Second model > object2 <- polr(Inc ~ Adopt + Training ,Data,H...
2011 May 24
1
seeking help on using LARS package
...that the authors of the paper are using Lasso regression and so far looking at their paper this is what I have gotten to. xtrain <- trainData > dim(trainData) [1] 18520 88 ytrain <- trainScore length(ytrain) [1] 18520 nfolds <- 100 epsilon <- exp(-10) # code from JP Vert object1 <- cv.lars(xtrain,ytrain, K=nfolds, fraction = seq(from = 0, to = 1 , length= 1000), type='lasso', eps=epsilon, plot.it=TRUE) bestfraction <- object1$fraction[min(which(object1$cv <= min(object1$cv)+ 0.01*(max(object1$cv)-min(object1$cv))))] bestcoef <- coef(object1,s=bestfrac...
2009 Jun 15
1
Create R object
...a list object lst=list(a1=matrix(rnorm(4),2,2), a2=matrix(rnorm(4),2,2),a3=matrix(rnorm(4),2,2)). Here I only use three elements for illustration, and in fact the length of lst, n, is unknown in advance. I want to define an object for each element of this lst, and the objects have names like "object1", "object2",...,"objectn". I could use a loop like the 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 ha...
2003 Feb 17
2
returning argument names
...t;..." construct, how can I get the function to return the names of the items which were the arguments of the function as part of the function's output? This is easily done where there is a fixed number of arguments: e.g: aa<-c(1,2,3,4,5) bb<-c(6,7,8,9,10) argument.out<-function(object1,object2){ name1<-deparse(substitute(object1)) name2<-deparse(substitute(object2)) output<-c(name1,name2) return(output) } argument.out(aa,bb) How can I produce a similar results from a function where there is an indeterminate number of arguments i.e: argument.list<-function(object,.....
2008 Sep 09
1
write dataframes
Hi, After manipulate my data I have ended up with 5 different data frames with different number of observations but the same number of variables (columns) An example, if I write str(object1), I see this, data.frame': 47 obs. of 3 variables: $ ORF : Factor w/ 245 levels "YAL038W","YAL054C",..: 10 19 38 39 44 45 50 51 59 60 ... $ mRNA : num 0.891 1.148 1.202 1.479 1.445 ... $ Protein: num 1.230 1.288 1.175 0.724 0.851 .. str(object2) 'data.fra...
2010 Aug 03
2
multiple R sessions from one working directory using GNU screen
Dear all, I am using GNU screen to run multiple R sessions from one working directory in order to split task, however I noticed that dataset is not synchronized e.g. if I have two sessions R1 and R2, and I remove an object from R1, R2 doesn't change as expected or change at random. I have tried to save.image(), q() and then restart both sessions, but it does not help. Any suggestions?
2007 Mar 09
4
How to create a list that grows automatically
...way to create a list or an array (or anything) which grows automatically as more elements are put into it. What I want to find is something equivalent to an ArrayList object of Java language. In Java, I can do the following thing: // Java code ArrayList myArray = new ArrayList(); myArray.add("object1"); myArray.add("object2"); .... // End of java code Thanks in advance. Young-Jin Lee [[alternative HTML version deleted]]
2007 Mar 09
4
How to create a list that grows automatically
...way to create a list or an array (or anything) which grows automatically as more elements are put into it. What I want to find is something equivalent to an ArrayList object of Java language. In Java, I can do the following thing: // Java code ArrayList myArray = new ArrayList(); myArray.add("object1"); myArray.add("object2"); .... // End of java code Thanks in advance. Young-Jin Lee [[alternative HTML version deleted]]
2007 Jan 23
1
How to evaluate an lm() object for generating warning statement in a function
...factor ANOVA (perhaps this is me re-inventing the wheel, but I handn't yet come across anything in R that does this for me, but I'm sure people will let me know from this posting if there are). The function takes as it's argument an object which holds the results of an lm call. e.g., object1<-lm(y~x) The function is as follows (some comments included): comp.var.estimates<-function(object.lm) { anovmod<-anova(object.lm) #get the anova table for the lm MStreat<-anovmod[1,3]; MSErr<-anovmod[2,3] #extract Mean Squares...
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="")) / (paste("object&quo...