search for: round1

Displaying 6 results from an estimated 6 matches for "round1".

Did you mean: round
2011 Nov 08
1
passing dataframe col name through cbind()
...rs, and how I can get 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...
2006 Apr 25
3
ZFS quotas & zoned datasets
...le/player2 NAME PROPERTY VALUE SOURCE table/player2 quota none default # zfs set quota=20g table/player2 cannot set quota for ''table/player2'': permission denied As expected but... # zfs create table/player2/round1 # zfs set quota=20g table/player2/round1 # ^D [Connection to zone ''player2'' pts/2 closed] pingpong:pts/1# zfs get quota table/player2/round1 NAME PROPERTY VALUE SOURCE table/player2/round1 quota 20G local Ok...
2010 Jan 11
1
Help with Order
...data as expected. I have multiple references in each file but each file refers to measurement data obtained at a different time. Here's the code library(reshape) # Enter file name to Read & Save 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"...
2007 May 14
1
round(#, digits=x) unreliable for x=2 (PR#9682)
...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, Round2, Round1, Signif3, Signif2, Signif1)
2006 Mar 07
13
Active Record - Can''t figure out relationship.
...tinyint(8) not null, constraint fk_home_teams foreign key (home_team_id) references teams(id), constraint fk_away_teams foreign key (away_team_id) references teams(id), primary key (id) ); And I need to be able to access this data through a join, ie I want to be able to do things like: @round1 = Round.get_round(1) And then be able to access @roind1.home_team_score @round1.home_team.short_name @round1.away_team.short_name etc But I just can''t figure out how to use belongs_to and has_many to get this relationship going because i''m using TWO FOREIGN KEYS to join the...
2012 Mar 02
0
[LLVMdev] General modular and multiprecision arithmetic
...mplemented. Here's an excerpt from a simple sample of it: Common ( Z SZKParameter = 80; Prime(1024) p = 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 fun...