search for: res0

Displaying 20 results from an estimated 75 matches for "res0".

Did you mean: res
2006 Aug 29
1
PATCH: Add fields argument to installed.packages and available.packages
...ory") for(repos in contriburl) { localcran <- length(grep("^file:", repos)) > 0 if(localcran) { @@ -23,7 +28,7 @@ if(length(grep("[A-Za-z]:", tmpf))) tmpf <- substring(tmpf, 2) } - res0 <- read.dcf(file = tmpf, fields = flds) + res0 <- read.dcf(file = tmpf) if(length(res0)) rownames(res0) <- res0[, "Package"] } else { dest <- file.path(tempdir(), @@ -57,7 +62,7 @@ call. = FALSE, immedi...
2000 Jul 05
1
Tukey.aov with split-plot designs
...for psycology experiments and questionnaires" data <- c(30,14,24,38,26,28,18,20,34,28,16,10,18,20,14,34,22,30,44,30) Stv.df <- data.frame(rt=data,subj=factor(rep(paste("subj",1:5,sep=""),4)),drug=factor( rep(paste("drug",1:4,sep=""),c(5,5,5,5)))) res0 <- aov(rt~drug,data=Stv.df) res1 <- aov(rt~drug+subj,data=Stv.df) res2 <- aov(rt~drug+Error(subj/drug),data=Stv.df) res0$resid works resid(res0) works res0$df.residual works res1$resid works resid(res1) works res1$df.residual work res2$resid doesn't work and reports NULL resid(res2)...
2001 Oct 17
1
res0.c / by 0?
In res0.c, line 78 I get a a division by zero (look->frames==0) when running vorbisfile_example. Is this some debugging code? Note that you don't see the exception unless you insert __asm{ push edx sub esp, 4 fstcw [esp] mov dx, [esp]...
2002 Jan 11
1
rsync 2.5.1 server - strange logs
I've just upgraded my rsync server to 2.5.1 (before, I was using 2.4.6), without changing anything in /etc/rsyncd.conf, and now, I have this logs each time a client connect to server: 2002/01/07 18:33:03 [10432] rsync: reverse name lookup mismatch on fd3 - spoofed address? 2002/01/07 18:33:03 [10432] rsync on admin/sbin/padmin_update.sh from UNKNOWN (172.16.65.14) 2002/01/07 18:33:03 [10432]
2016 Apr 10
0
what is the faster way to search for a pattern in a few million entries data frame ?
...goes quickly to C, so I don't think data.table or other will be markedly faster if you're looking for an arbitrary regular expression (use fixed=TRUE if looking for an exact match). If you're looking for strings that start with a pattern, then in R-3.3.0 there is > system.time(res0 <- startsWith(grams, "900001")) user system elapsed 0.658 0.012 0.669 which returns the same result as grepl > identical(res0, res1 <- grepl("^900001", grams)) [1] TRUE One can also parallelize the already vectorized grepl function with parallel::pvec,...
2016 Mar 02
2
install.packages() fails with drat repository on networkdrive
Dear all, install.packages("lme4") fails with error Error in read.dcf(file = tmpf) : cannot open the connection In addition: Warning message: In read.dcf(file = tmpf) : cannot open compressed file '//servername/repository_path/bin/windows/contrib/3.2/PACKAGES', probable reason 'No such file or directory' the repositories set in .Rprofile are
2011 Jul 12
1
use-after-free in open_socket_out
Since 3.0.8 (the same in 3.1) we have this around line 300 in socket.c: break; } freeaddrinfo(res0); if (s < 0) { char buf[2048]; for (res = res0, j = 0; res; res = res->ai_next, j++) { if (errnos[j] == 0) continue; if (inet_ntop(res->ai_family, res->ai_addr->sa_data + 2, buf, sizeof buf) == NULL) strlcpy...
2014 Dec 11
0
[PATCH RFC v6 11/20] s390x/virtio-ccw: support virtio-1 set_vq format
...ication blocks used by several channel commands. */ -typedef struct VqInfoBlock { +typedef struct VqInfoBlockLegacy { uint64_t queue; uint32_t align; uint16_t index; uint16_t num; +} QEMU_PACKED VqInfoBlockLegacy; + +typedef struct VqInfoBlock { + uint64_t desc; + uint32_t res0; + uint16_t index; + uint16_t num; + uint64_t avail; + uint64_t used; } QEMU_PACKED VqInfoBlock; typedef struct VqConfigBlock { @@ -269,17 +278,20 @@ typedef struct VirtioRevInfo { } QEMU_PACKED VirtioRevInfo; /* Specify where the virtqueues for the subchannel are in guest memor...
2014 Dec 11
0
[PATCH RFC v6 11/20] s390x/virtio-ccw: support virtio-1 set_vq format
...ication blocks used by several channel commands. */ -typedef struct VqInfoBlock { +typedef struct VqInfoBlockLegacy { uint64_t queue; uint32_t align; uint16_t index; uint16_t num; +} QEMU_PACKED VqInfoBlockLegacy; + +typedef struct VqInfoBlock { + uint64_t desc; + uint32_t res0; + uint16_t index; + uint16_t num; + uint64_t avail; + uint64_t used; } QEMU_PACKED VqInfoBlock; typedef struct VqConfigBlock { @@ -269,17 +278,20 @@ typedef struct VirtioRevInfo { } QEMU_PACKED VirtioRevInfo; /* Specify where the virtqueues for the subchannel are in guest memor...
2002 Apr 02
3
getaddrinfo() problem with AIX 4.3.3 and rsync 2.5.2?
...--- clientname.c.orig Fri Jan 25 17:59:37 2002 +++ clientname.c Mon Apr 1 13:32:10 2002 @@ -240,7 +240,7 @@ hints.ai_family = ss_family; hints.ai_flags = AI_CANONNAME; hints.ai_socktype = SOCK_STREAM; - error = getaddrinfo(name_buf, port_buf, &hints, &res0); + error = getaddrinfo(name_buf, NULL, &hints, &res0); if (error) { rprintf(FERROR, RSYNC_NAME ": forward name lookup for %s failed: %s\n", -- John L. Allen, Dept 0631, EMS 516-346-8456, MS C06-001 Nort...
2011 Aug 05
1
Main-effect of categorical variables in meta-analysis (metafor)
Dear R-experts! In a meta-analysis (metafor) I would like to assess the effect of two categorical covariates (A & B) whereas they both have 4 levels. Is my understanding correct that this would require to dummy-code (0,1) each level of each covariate (A & B)? However I am interested in the main-effects and the interaction of these two covariates and the dummy-coding would only allow to
2017 Nov 28
2
dplyr - add/expand rows
...(station = .$station, >> year = seq(.$from, .$to), >> record = .$record) >> ) >> >> ########################### >> > > In a bit more 'base R' mode I did > > input$year <- with(input, Map(seq, from, to)) > res0 <- with(input, Map(data.frame, station=station, year=year, > record=record)) > as_tibble(do.call(rbind, unname(res0)))# A tibble: 24 x 3 > > resulting in > > > as_tibble(do.call(rbind, unname(res0)))# A tibble: 24 x 3 > station year record > <fctr&g...
2017 Nov 29
0
dplyr - add/expand rows
...ot;) } ## Jim - dplyr fun_jim <- function(d) { d %>% rowwise() %>% do(tibble(station = .$station, record = .$record, year = seq(.$from, .$to)) ) } ## Martin - Map fun_martin <- function(d) { d$year <- with(d, Map(seq, from, to)) res0 <- with(d, Map(data.frame, station=station, record=record, year=year, MoreArgs = list(stringsAsFactors = FALSE))) do.call(rbind, unname(res0)) } ## Denes - simple data.table fun_denes <- function(d...
2017 Nov 29
2
dplyr - add/expand rows
...%>% > ??? rowwise() %>% > ??? do(tibble(station = .$station, > ????????????? record = .$record, > ????????????? year = seq(.$from, .$to)) > ??? ) > } > > ## Martin - Map > fun_martin <- function(d) { > ? d$year <- with(d, Map(seq, from, to)) > ? res0 <- with(d, Map(data.frame, > ????????????????????? station=station, > ????????????????????? record=record, > ????????????????????? year=year, > ????????????????????? MoreArgs = list(stringsAsFactors = FALSE))) > ? do.call(rbind, unname(res0)) > } > > ## Denes - simp...
2001 Jun 03
3
[xiphmont@xiph.org: [xiph-cvs] cvs commit: vorbis/vq huffbuild.c latticetune.c make_residue_books.pl]
...orbis/vq huffbuild.c latticetune.c make_residue_books.pl Date: Sun, 3 Jun 2001 22:50:13 -0700 (PDT) From: xiphmont@xiph.org (Monty) Precedence: bulk Reply-To: cvs@xiph.org xiphmont 01/06/03 22:50:12 Modified: lib codebook.c codebook.h floor0.c mapping0.c os.h res0.c vq huffbuild.c latticetune.c make_residue_books.pl Log: Cascading fully functional --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.or...
2017 Nov 28
0
dplyr - add/expand rows
...%>% > rowwise() %>% > do(tibble(station = .$station, > year = seq(.$from, .$to), > record = .$record) > ) > > ########################### In a bit more 'base R' mode I did input$year <- with(input, Map(seq, from, to)) res0 <- with(input, Map(data.frame, station=station, year=year, record=record)) as_tibble(do.call(rbind, unname(res0)))# A tibble: 24 x 3 resulting in > as_tibble(do.call(rbind, unname(res0)))# A tibble: 24 x 3 station year record <fctr> <int> <fctr> 1 0...
2017 Nov 29
0
dplyr - add/expand rows
...> do(tibble(station = .$station, >> record = .$record, >> year = seq(.$from, .$to)) >> ) >> } >> >> ## Martin - Map >> fun_martin <- function(d) { >> d$year <- with(d, Map(seq, from, to)) >> res0 <- with(d, Map(data.frame, >> station=station, >> record=record, >> year=year, >> MoreArgs = list(stringsAsFactors = FALSE))) >> do.call(rbind, unname(res0)) >> } &g...
2017 Nov 27
2
dplyr - add/expand rows
try this: ########################################## library(dplyr) input <- tribble( ~station, ~from, ~to, ~record, "07EA001" , 1960 , 1960 , "QMS", "07EA001" , 1961 , 1970 , "QMC", "07EA001" , 1971 , 1971 , "QMM", "07EA001" , 1972 , 1976 , "QMC", "07EA001" , 1977 ,
2016 Apr 10
5
what is the faster way to search for a pattern in a few million entries data frame ?
Hi Duncan, > Didn't you post the same question yesterday? Perhaps nobody answered > because your question is unanswerable. sorry, I got a email that my message was waiting for approval and when I look at the forum I didn't see my message and this is why I sent it again and this time I did check that the format of my message was text only. Sorry for the noise. > You need to
2001 May 01
1
encoder observation
Hello! First of all a question: When you make the encoder tables (ie: mode_e.h) do you use the mapping0_forward function? Because you made the encoder tables, and after this you did a minor correction in the final beta4 ... (this correction was: additional[0]=fabs(additional[0]*scale); in the mapping0_forward function) (I see this was a bug, and the modification was correct, but this correction