search for: set1

Displaying 20 results from an estimated 94 matches for "set1".

Did you mean: set
2011 Mar 08
3
allocating factor levels
...n" column. In fact, it wouldnt even need to be a factor or character, it could simply be numbered (i.e., the set/haul prefix is useless as I could simply split it afterwards). Start.action Start.time action 1 Start.setting 2010-12-30 17:58:00 set1 2 Start.setting 2010-12-30 18:40:00 set1 3 Start.setting 2010-12-31 22:39:00 set1 4 Start.setting 2010-12-31 23:24:00 set1 5 Start.setting 2011-01-01 00:30:00 set1 6 Start.setting 2011-01-01 01:10:00 set1 7...
2009 Dec 11
4
extracting vectors from lists of lists
...vectors and matrices. Supposing that I then run said simulation several times, I often want to extract a particular result from each simulation for plotting and, ideally, put it in a matrix. A simple example v1 <- 1:5 v2 <- 6:10 other1 <- "stuff" other2 <- "stuff" set1 <- list(v1,other1) names(set1) <- c("vec","other") set2 <- list(v2,other2) names(set2) <- c("vec","other") output <- list(set1, set2) Is there some form of lapply() that will allow me to extract v1 and v2 (ie, the $vec elements) from both se...
2013 Feb 01
2
Change default order of colors & line types
Dear R users, I'd like to change the default order of colors & line types. Especially I am using ggplot2 and using color Set1. In Set1, the default color order is red, blue, green, violet,.. ect. However, I want to put red in fourth (not first). Likewise, I want to change the order of default linetype. I want to put "solid" line in fourth. How can I do thses? R code to draw the graph is qplot(variable, power, d...
2009 Oct 14
1
pairs
Dear all, I have two sets of data (say set1 and set2) as follow: set1 x1 x2 x3 0.30 0.43 3.88 0.38 0.59 3.53 0.30 0.42 2.12 0.33 0.53 2.12 0.30 0.47 3.76 set2 y1 y2 y3 0.32 0.47 5.18 0.23 0.26 1.06 0.42 0.65 3.88 0.28 0.38 3.76 0.35 0.47 1.41 The "pairs" function (such as pairs(~x1+x2+x3 data=set...
2011 Jul 13
1
UNIX diff function
Colleagues, (R: 2.13.0; OS X) I often receive sequential datasets in which there are new rows interposed between existing rows. For example: SET1 <- data.frame(list(LETTERS=LETTERS[c(1:4, 6:10)], NUMBERS=c(1:4, 6:10))) SET2 <- data.frame(list(LETTERS=LETTERS[1:10], NUMBERS=1:10)) > SET1 LETTERS NUMBERS 1 A 1 2 B 2 3 C 3 4 D 4 5 F 6 6 G 7 7 H 8 8...
2007 Apr 28
1
The confidence level of p-value of ks.boot
...s whether they come from the same distribution. I use function ks.boot{Matching}. And what is the confidence level of the p-value, returned by ks.boot function? The code is: set=read.table("http://stella.sai.msu.ru:8080/~gala/data/testsets.csv", header=T,sep=',') set1=set[!is.na(set$set1),'set1'] set2=set[!is.na(set$set2),'set2'] library(Matching) ks.b=ks.boot(set1,set2,1000) ks.b Thank you!
2007 Sep 08
1
Problem with the aggregate command
...from the years 1991 through 2005. I want to aggregate the data and get the medians of each of the 23 columns for each of the years. In other words my output should be like this Year Median 1991 123 1992 145 1993 132 etc. The sample lines of code to do this operation is set1 <- subset(as.data.frame(dataset),rep1==1) set2 <- subset(as.data.frame(dataset),rep1==0) lst <- list(unique(yeara)) y1 <- aggregate(set1,lst,median) y2 <- aggregate(set2,lst,median) However I'm getting an error as follows Error in FUN(X[[1]], ...) : arguments must have same len...
2017 Apr 03
5
[PATCH v2 0/3] nv50/ir: Preapre for running Opts inside a loop
Slowly we are getting to the point, that we miss enough optimization opportunities as the result of our own passes. For this we need to fix AlgebraicOpt to be able to handle mods on sources without creating new issues. The last patch enables looping opts. v2: update commit author Karol Herbst (3): nv50/ir: fix AlgebraicOpt for slcts with mods nv50/ir: handle logops with NOT in AlgebraicOpt
2017 Mar 09
4
[RFC] bitfield access shrinking
...e is below: Before coalescing done by earlycse/loadpre: %bf.load = load i64, i64* %0, align 8 %bf.clear = and i64 %bf.load, -65536 %bf.set = or i64 %bf.value, %bf.clear store i64 %bf.set2, i64* %9, align 8 ..... %bf.load1 = load i64, i64* %0, align 8 %bf.clear1 = and i64 %bf.load1, -4294901761 %bf.set1 = or i64 %bf.value1, %bf.clear1 store i64 %bf.set2, i64* %9, align 8 ..... %bf.load2 = load i64, i64* %0, align 8 %bf.clear2 = and i64 %bf.load2, -4294901761 %bf.set2 = or i64 %bf.value2, %bf.clear2 store i64 %bf.set2, i64* %9, align 8 After coalescing, it will become: %bf.load = load i64, i64* %0...
2009 Mar 29
2
h exten no getting run ...
...to 3 [Mar 29 10:33:49] -- Executing [s at questionnaire-menu:2] Set("Zap/1-1", "TIMEOUT(response)=5") in new stack [Mar 29 10:33:49] -- Response timeout set to 5 [Mar 29 10:33:49] -- Executing [s at questionnaire-menu:3] Playback("Zap/1-1", "custom/Set1/a4e471fa-bd5d-859d-de11-a80900620b28-0") in new stack [Mar 29 10:33:49] -- <Zap/1-1> Playing 'custom/Set1/a4e471fa-bd5d-859d-de11-a80900620b28-0' (language 'en') [Mar 29 10:33:53] -- Channel 0/1, span 1 got hangup request, cause 16 [Mar 29 10:33:53] WARNING[18721...
2006 Jan 03
1
randomForest - classifier switch
Hi I am trying to use randomForest for classification. I am using this code: > set.seed(71) > rf.model <- randomForest(similarity ~ ., data=set1[1:100,], importance=TRUE, proximity=TRUE) Warning message: The response has five or fewer unique values. Are you sure you want to do regression? in: randomForest.default(m, y, ...) > rf.model Call: randomForest(x = similarity ~ ., data = set1[1:100, ], importance = TRUE, proximity = T...
2011 Feb 25
0
Help with card-sorting experiment
...ng this: rset[1] <- reviewer1 rset[2] <- reviewer2 . So when I try to do adjustedRandIndex(rset[1],rset[2]) I get an error message: Error in FUN(X, Y, ...) : comparison of these types is not implemented And If I do this: > rset[1] [[1]] [1] set1 set2 set1 set2 set1 set2 set1 set2 set1 set2 Levels: set1 set2 PROBLEM 2) Some of my reviewers have put single cards into two piles (which was allowed). However, this routine for the Adjusted Rand Index doesn't seem to be able to handle that sort of category as an input. Is that a probl...
2005 Feb 28
2
Two offices connection
...0P cards (4 ports FXS & FXO). My questions is that how to configure Asterisk to forward the PSTN calls directly to another Asterisk which has the TDM400P card without pressing the extension number. Diagram like following ---PSTN line1 ------>[Asterisk]______WAN______[Asterisk ]----->Phone Set1 ---PSTN line x ----->[TDM400P] [TDM400P] ---->Phone Set1 So, call coming from PSTN should go directly to Phone Set1 without any Extension. Is it possible, if so,please let me know how to configure both Asterisk server? Thanking you, Azhar -- This message...
2012 Sep 13
2
Shading in prediction intervals
I have the following code for the minimum and maximum of my prediction interval > y.down=lines(x[x.order], set1.pred[,2][x.order], col=109) > y.up=lines(x[x.order], set1.pred[,3][x.order], col=109) domain=min(x):max(x) polygon(c(domain,rev(domain)),c(y.up,rev(y.down)),col=109) It doesnt seem to shade the right region, it gives me a trapezoid. Any help? Thanks! [[alternative HTML version...
2001 Oct 18
1
rsync 2.4.6 upload trouble
...sync trouble I installt an new version of rsync on my server and clients (2.4.6) first every thing workt fine but now I'm having a lot of trouble. I use the following command to upload: rsync -vcrulpog -e ssh --delete --exclude=*lost+found --timeout=60 --password-file=/etc/rsyncpasswd /exports/set1/ user@1.2.3.4:/exports/set1/ and it gives me the following error: building file list ... done io timeout after 60 second - exiting Received signal 10. any Idea's ?? ----server site: this is the output of ps xa: rsync --server -ulogprc --timeout=60 --delete . /exports/set0/ this is my rs...
2011 Nov 03
1
For loop to cycle through datasets of differing lengths
...handle it. I use for-loops to cycle through datasets. When each dataset is of equal length, it works fine as I can combine the datasets and have each loop pick up a different column, but when the datasets are differing lengths, I am struggling. Here is an example: A<-1:10 B<-1:15 C<-1:18 Set1<-data.frame(A,runif(10)) Set2<-data.frame(B,runif(15)) Set3<-data.frame(C,runif(18)) for (i in 1:3){ if (i==1) Data<-Set1 else if (i==2) Data<-Set2 else Data<-Set3 dev.new() plot(Data[,1],Data[,2]) } I don't always want to plot them and instead do other things, such as fit...
2004 Jul 21
2
Cutting heatmap dendrogram
...ge dendrogram, it would have 4 or 25 in the example below. Any guidance on if that's possible or not, and what kinds of commands I should be looking into would be very much appreciated. I'm using R 1.9.0 on Windows XP. Thanks! Paul # load libraries library(stats); # working copy of data set1 <- as.matrix(data); set2 <- t(set1); # genes genes.distance <- as.dist(1-cor(set2)); genes.clusters <- hclust(genes.distance); genes.dendrogr <- as.dendrogram(genes.clusters); # samples samples.distance <- as.dist(1-cor(set1)); samples.clusters <- hclust(samples.distance1); s...
2017 Mar 09
4
[RFC] bitfield access shrinking
...ad = load i64, i64* %0, align 8 >> %bf.clear = and i64 %bf.load, -65536 >> %bf.set = or i64 %bf.value, %bf.clear >> store i64 %bf.set2, i64* %9, align 8 >> ..... >> %bf.load1 = load i64, i64* %0, align 8 >> %bf.clear1 = and i64 %bf.load1, -4294901761 >> %bf.set1 = or i64 %bf.value1, %bf.clear1 >> store i64 %bf.set2, i64* %9, align 8 >> ..... >> %bf.load2 = load i64, i64* %0, align 8 >> %bf.clear2 = and i64 %bf.load2, -4294901761 >> %bf.set2 = or i64 %bf.value2, %bf.clear2 >> store i64 %bf.set2, i64* %9, align 8 >>...
2017 Apr 03
0
[PATCH v2 2/3] nv50/ir: handle logops with NOT in AlgebraicOpt
...v50_ir_peephole.cpp index bd60a84998..0de84fe9fc 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -1856,6 +1856,12 @@ AlgebraicOpt::handleLOGOP(Instruction *logop) set0 = cloneForward(func, set0); set1 = cloneShallow(func, set1); + + if (logop->src(0).mod == Modifier(NV50_IR_MOD_NOT)) + set0->asCmp()->setCond = inverseCondCode(set0->asCmp()->setCond); + if (logop->src(1).mod == Modifier(NV50_IR_MOD_NOT)) + set1->asCmp()->setCond = inverseCondCode(...
2006 Jun 29
1
lmer - Is this reasonable output?
...with n = 179 with four clusters (21, 70, 36, and 52) named siteid. I'm estimating a logistic regression model with random intercept and another version with random intercept and random slope for one of the independent variables. fit.1 <- lmer(glaucoma~(1|siteid)+x1 +x2,family=binomial,data=set1,method="ML", control=list(usePQL=FALSE,msVerbose=TRUE)) Generalized linear mixed model fit using PQL Formula: glaucoma ~ (1 | siteid) + x1 + x2 Data: set1 Family: binomial(logit link) AIC BIC logLik deviance 236.7448 249.4944 -114.3724 228.7448 Random effects:...