search for: round2

Displaying 7 results from an estimated 7 matches for "round2".

Did you mean: round
2011 Nov 08
1
passing dataframe col name through cbind()
...et all col names, including the first, passed on to the result?while I suspect it's obvious and documented to the cognoscenti, it's puzzling me? Many thanks for any help on this... Eric > scores <- data.frame(name=c("Bob","Ron","Bud"),round1=c(40,30,20),round2=c(5,6,4)) #some toy data > > scores name round1 round2 1 Bob 40 5 2 Ron 30 6 3 Bud 20 4 > > cbind(scores[,1],total=rowSums(scores[,2:3]),scores[,2:3]) scores[, 1] total round1 round2 1 Bob 45 40 5 2 Ron 36 30 6 3...
2010 Jan 11
1
Help with Order
...data FileName=readline("Enter File name:\n") # Find first occurance of file for ( round1 in 1 : 6) { ReadFile=paste(round1,"C_",FileName,"_Stats.csv", sep="") if (file.exists(ReadFile)) break } x = data.frame(read.csv(ReadFile, header=TRUE),rnd=round1) for ( round2 in (round1+1) : 6) { # ReadFile=paste(round2,"C_",FileName,"_Stats.csv", sep="") if (file.exists(ReadFile)) { y = data.frame(read.csv(ReadFile, header=TRUE),rnd = round2) if (round2 == (round1 +1)) z=data.frame(merge(x,y,all=TRUE)) z=data.frame(merge(y,z,al...
2007 May 14
1
round(#, digits=x) unreliable for x=2 (PR#9682)
...r. Is this a bug or intended behaviour? Is there a work-around? #Example code: number <- 0.897575 # this one isn't reported to 2 decimal places 0.90 as expected #number <- 0.946251 # when the last reported digit is non-zero it gives expected behaviour Round3 <- round(number, digits=3) Round2 <- round(number, digits=2) #why 0.9 and not 0.90 for 0.897575? Round1 <- round(number, digits=1) Signif3 <- signif(number, digits=3) Signif2 <- signif(number, digits=2) #why 0.9 and not 0.90 0.897575? Signif1 <- signif(number, digits=1) Results <- data.frame(Round3, Rou...
2012 Mar 02
0
[LLVMdev] General modular and multiprecision arithmetic
...= 17; Prime(160) q = 1; Zmod*(p) y = 1, g=3 ) { } Prover(Zmod+(q) x) { Zmod+(q) _s_1=1, _r_1=4; Def (Void): Round0(Void) { } Def (Zmod*(p) _t_1): Round1(Void) { _r_1 := Random(Zmod+(q)); _t_1 := (g^_r_1); } Def (_s_1): Round2(_C=Int(80) _c) { _s_1 := (_r_1+(x*_c)); } } I have already written a parser and an LLVM front-end for it. The approach I've used so far was to have external functions modexp1024 (and cast all inputs to 1024 - the maximal bitsize allowed for my simple cases), modmul1024 and...
2006 Apr 25
3
ZFS quotas & zoned datasets
I''m seeing some unexpected and strange behaviour with respect to quotas and zones. Initially I set things up with no quota on the data set that as delegated to the zone. Then as the local zone admin I created a new child dataset and set a quota on that. Now the global zone admin attempts to quota the delegated dataset, and it appears to work but.... global zone=pingpong local
2009 Nov 13
1
spss imports--trouble with to.data.frame
My students are working with several SPSS dataset provided by the European Social Survey. If you register your name, you can download it too. This is the 2004 data, for example: http://ess.nsd.uib.no/ess/round2/ I cannot give you the European Survey dataset, but you can download it for free if you like, and then you could run these commands to re-produce this weird pattern described below. library(foreign) d2 <- read.spss("ESS3e03_2.por") warnings() str(d2$HAPPY) d2 <- as.data.frame(d2)...
2008 Dec 22
56
[git patches] Ocfs2 patches for merge window, batch 2/3
...rt of this series is comprised of some more meta data I/O cleanups by Joel. This time the focus is on writing of leaves in indexed xattr trees and managing those changes in a fashion which makes the meta data checksum patches in round 3 more straight forward. --Mark Please pull from 'upstream-round2' branch of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2.git upstream-round2 to receive the following updates: fs/Kconfig | 7 + fs/Makefile | 1 + fs/dquot.c | 436 +++++++++---- fs/ext3/super.c...