search for: dfb

Displaying 18 results from an estimated 18 matches for "dfb".

Did you mean: db
2013 Jan 31
2
use name (not values!) of a dataframe inside a funktion
...ary, it seems. up to now i don't fully understand, why things like get, assign, <<- etc do sometimes work, and sometimes not. here's one of my daily examples, i am stuck with: Example 1 does work, but example 2 doesn't? How kann i tell R, that i want it to expand the string "dfb" to "dfb[,2]" inside the function. In the end i want the function to change the second variable of the dataframe dfb permanently to factor (not just inside the function). Thanks in advance! Winfried Example 1: dfa <- data.frame(a=c(1:4),b=c(1:4)) dfa[,2] <- factor(dfa[,2])...
2003 Nov 23
3
make check reg-tests-3
...569987 3.592482 3.599979 3.580547 3.600799 3.599768 73 74 75 76 77 78 79 80 @@ -432,44 +433,57 @@ Potentially influential observations of lm(formula = 1000/MPG.city ~ Weight + Cylinders + Type + EngineSize + DriveTrain, data = Cars93) : - dfb.1_ dfb.Wght dfb.Cyl4 dfb.Cyl5 dfb.Cyl6 dfb.Cyl8 dfb.Cyln dfb.TypL -8 -0.16 0.00 -0.10 -0.07 -0.24 -0.44 0.01 0.12 -19 -0.03 0.09 -0.01 -0.03 0.00 -0.01 -0.03 0.08 -28 0.11 -0.15 0.04 0.02 0.02 0.02 0.04 0.07 -39 -0.19 0.05...
2009 Jun 20
1
how to apply the dummy coding rule in a dataframe with complete factor levels to another dataframe with incomplete factor levels?
...levels to another dataframe with incomplete factor levels. I used model.matrix, but could not get what I want. The following is an example. #Suppose I have two dataframe A and B dfA=data.frame(f1=factor(c('a','b','c')), f2=factor(c('aa','bb','cc'))) dfB =data.frame(f1=factor(c('a','b','b')), f2=factor(c('aa','bb','bb'))) #dfB's factor variables have less number of levels #use model.matrix on dfA (matA<-model.matrix(~f1+f2,data=dfA)) #use model.matrix on dfB (matB<-model.matrix(~f1+f2,data=...
2008 Dec 01
1
Help with lattice graphics
...p=(''));nb<-length(vec_b) yr<-c("2007","2008","2009");ny<-length(yr) fac_a<-factor(vec_a);fac_b<-factor(vec_b);fac_yr<-factor(yr) n<-na*nb*ny # y is the response variable y<-runif(n);y<-round(y,digits=1) dfa<-rep(fac_a,times=nb*ny) dfb<-rep(fac_b,each=na,times=ny) dfyr<-rep(fac_yr,each=na*nb) dataf<-data.frame(dfa=dfa,dfb=dfb,dfyr=dfyr,y=y);head(dataf) # dataf is the test data frame # First test with the lattice package library(lattice) barchart(y~dfb|dfyr,dataf,layout=c(3,1),beside=FALSE, ????????? groups=dfa, ?????????...
2009 Oct 22
1
help sub setting data frame
...ire Dam MG SEX 601 1001 715349 61710 61702 67 F 969 1001_1 511092 616253 615037 168 F 986 1002_1 511082 616253 623905 168 F 667 1003 715617 61817 61441 67 F 1361 1003_1 510711 635246 627321 168 F 754 1004 715272 62356 61380 67 F > dfb = chkPd[df$PN,] > dfb PN WB Sire Dam MG SEX 1001 2114_1 510944 616294 614865 168 M NA <NA> NA <NA> <NA> NA <NA> NA.1 <NA> NA <NA> <NA> NA <NA> 1003 1130_1 510950 616294 619694 168 F N...
2012 Jan 29
0
Using influence plots and obtaining id numbers
...rring to? These numbers, 7,18, 26. and 105, are definitely not my study ID numbers. > Myoutput<-aov(sib~newgroup1, data=Study1) > influencePlot(Myoutput) [1] 7 18 26 105 > influence.measures(Myoutput) Influence measures of aov(formula = sib ~ newgroup1, data = Study1) : dfb.1_ dfb.nw12 dfb.nw13 dfb.nw14 dfb.nw15 dffit cov.r cook.d hat inf 33 1.70e-01 -1.33e-01 -1.53e-01 -1.56e-01 -1.52e-01 0.170405 1.124 5.83e-03 0.0909 * 34 7.79e-02 -6.07e-02 -7.00e-02 -7.14e-02 -6.94e-02 0.077934 1.131 1.22e-03 0.0909 * 35 1.47e-01 -1.15e-01 -1.32e-01 -1.35e...
2012 Mar 26
0
filter and merge 2 big Df's by=t_chr in sec.
...Xlt, "sec") ) ) # ts_t1t2_POSIXlt<-seq(t1_POSIXlt,t2_POSIXlt,length.out =length(seq(t1_POSIXlt,t2_POSIXlt, "sec") ) ) t_chr2<-t_ts_t1t2_chr<-as.character(format(ts_t1t2_POSIXlt,"%Y-%m-%d %H:%M:%OS")) tail(t_ts_t1t2_chr) Df.b<-as.data.frame(cbind(t_chr2,dfb.b1=c(1:length(t_chr2)),dfb.b=2*c(1:length(t_chr2)),dfb.c=0.1*c(length(t_chr2):1))); Df.b #------------------------------------------ merge(Df.a,Df.b, by.x=t_chr,by.y=t_chr2,all.x=TRUE,all.y=TRUE) And if in Df.a there is no all seconds measurements? And if in Df.a. there are many NA? How we c...
2008 Mar 18
1
problem with merge
I have used merge regularly and thought I understood how it worked, but I must not. I have two dataframes with identical colnames from two different experiments, TL01 and LC01. Each dataframe has a column named "Entrez.Gene", which I have converted to "as.character" just to make sure merge is not looking at factor levels. Because I have done some filtering, the Entrez.Gene
2014 Oct 15
2
Test K-S con distribuciones LogNormales
...> >> # Bucketización - Muestra bucketizada >> library(plyr) >> dt <- data.frame(sample=sample, bucket=rep(1:nbucket, each = n/nbucket)) >> sample_bucket <- ddply(dt,~bucket,summarise,mean=mean(sample)) >> >> # Función de distribución bucketizada >> dfb <- plnorm(sample_bucket$mean, meanlog = mean, sdlog = sd) >> lognorm2 <- data.frame(sample=sample_bucket$mean, distfun=dfb) >> par(new=TRUE) >> points(lognorm2, col = "blue") >> >> ks.test(lognorm1$sample, lognorm2$sample) # Obtengo p-valor=1 >> &...
2007 Dec 17
0
Swfdec on STLinux
...ptions both with the old (first result) and Claudio's rewritten (second result) cairo-directfb backend. Results were as follows: 300s - 162s - normal playback 300s - 162s - playback with environment variable CAIRO_DIRECTFB_NO_ACCEL set 420s - 172s - playback with -p option, which uses a primary DFB surface What do I learn from that? Acceleration does not work - at least not the acceleration provided by the Renesas chip. So there seems to be some work necessary to make this acceleration available to Swfdec somehow. The next steps I'm intending to take are: 1) Having a look at Cairo's...
2006 Nov 09
1
Merge: how can I keep discarded values?
Good morning, I am merging two datasets and I would like to save the non-matching rows in a separate file. The problem is how to retrieve the non-matching rows in R. Example: DATASET A code nomi A1 Franco A2 Mario A3 Andrea A4 Sandro A5 Luca DATASET B code book A1 Guerra e Pace A1 Storia di Roma A2 La coscienza di Zeno A4
1999 Jun 23
1
Influence.measures
I am using rw0641 with Windows 98. To list just the influential repetitiones that result from "influence.measures", I am using the input result <- lm(y~x) and the code from the example in the help for "influence.measures" INFLM <- function(result){ inflm <- influence.measures(result) which(apply(inflm$is.inf,1,any)) } It works fine up to now with the
2017 Aug 08
5
[PATCH libdrm] drm: Remove create_handle() drm_framebuffer "virtual".
...rivers/gpu/drm/armada/armada_fb.c b/drivers/gpu/drm/armada/armada_fb.c index 92e6b08ea64a..b7fd50b347d5 100644 --- a/drivers/gpu/drm/armada/armada_fb.c +++ b/drivers/gpu/drm/armada/armada_fb.c @@ -18,20 +18,12 @@ static void armada_fb_destroy(struct drm_framebuffer *fb) struct armada_framebuffer *dfb = drm_fb_to_armada_fb(fb); drm_framebuffer_cleanup(&dfb->fb); - drm_gem_object_unreference_unlocked(&dfb->obj->obj); + drm_gem_object_unreference_unlocked(fb->gem_objs[0]); kfree(dfb); } -static int armada_fb_create_handle(struct drm_framebuffer *fb, - struct drm_file *...
2017 Aug 08
5
[PATCH libdrm] drm: Remove create_handle() drm_framebuffer "virtual".
...rivers/gpu/drm/armada/armada_fb.c b/drivers/gpu/drm/armada/armada_fb.c index 92e6b08ea64a..b7fd50b347d5 100644 --- a/drivers/gpu/drm/armada/armada_fb.c +++ b/drivers/gpu/drm/armada/armada_fb.c @@ -18,20 +18,12 @@ static void armada_fb_destroy(struct drm_framebuffer *fb) struct armada_framebuffer *dfb = drm_fb_to_armada_fb(fb); drm_framebuffer_cleanup(&dfb->fb); - drm_gem_object_unreference_unlocked(&dfb->obj->obj); + drm_gem_object_unreference_unlocked(fb->gem_objs[0]); kfree(dfb); } -static int armada_fb_create_handle(struct drm_framebuffer *fb, - struct drm_file *...
2017 Aug 08
5
[PATCH libdrm] drm: Remove create_handle() drm_framebuffer "virtual".
...rivers/gpu/drm/armada/armada_fb.c b/drivers/gpu/drm/armada/armada_fb.c index 92e6b08ea64a..b7fd50b347d5 100644 --- a/drivers/gpu/drm/armada/armada_fb.c +++ b/drivers/gpu/drm/armada/armada_fb.c @@ -18,20 +18,12 @@ static void armada_fb_destroy(struct drm_framebuffer *fb) struct armada_framebuffer *dfb = drm_fb_to_armada_fb(fb); drm_framebuffer_cleanup(&dfb->fb); - drm_gem_object_unreference_unlocked(&dfb->obj->obj); + drm_gem_object_unreference_unlocked(fb->gem_objs[0]); kfree(dfb); } -static int armada_fb_create_handle(struct drm_framebuffer *fb, - struct drm_file *...
2007 Aug 16
4
Combine matrix
Hi R user, I am new to R, and I have a very simple question for you. I have two matrix A and B, with internally redundant rownames (but variables are different). Some, but not all the rownames are shared among the two matrix. I want to create a greater matrix that combines the previuos two, and has all the possible combinations of matching rownames lines among matrix A and B. looking for the
2017 Jul 31
2
[PATCH] Add drm ioctl DRM_IOCTL_MODE_GETFB2 & associated helpers.
New getfb2 functionality uses drm_mode_fb_cmd2 struct to be symmetric with addfb2. Also modifies *_fb_create_handle() calls to accept a format_plane_index so that handles for each plane can be generated. Previously, many *_fb_create_handle() calls simply defaulted to plane 0 only. Signed-off-by: Joe Kniss <djmk at google.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_disp...
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...mpnG4cPn3cg#hl`Ewl>1yE zaWpkEQB)jOSlFuA?h|5GyUZiI=dhb}mj&U;R9l0wd*`q#=jLOQislJ|NP1Y~#=651 z-YlBkm at jRJPmt2Um|r91dkH(@^h9%==3R=IkgVtw#c0vnHS0N!(^rkrijRdA;shS( zC7#3l)@KgeEt8))Ebq+_Ga=cW5pS7AbVMwtEkk}_>k-HA68_~KsN8Q}%|x#PE!ss# z1XF35>5Am~YCHq_w>BBXUT8VgIk5*rUE&@L>2jmuI63*eVV^GdFbY?}%dK~nI{dA= z+7z>dHO{=ax)L%n5>jH#UY<Y^MxoR7T`uAh_f!eiMxF~2PGZ)U((>2qlkcD8E at GNy zD&~!ud%JlF8e(RS%i5P at i5{`I9`IL}1r3-PVR6eN;=~|sY|`vII_p~9Eie151T(#g zl$yHgC at q}fO at 8G@J$0b~^GIo4(%2y4`r$0AkNC`ch_u+)uwRa-Z}r>bmpr;hOkiep z>?xRi-x{(zSkWZ5<;6W26Q6tKEW~`Q>=<K=m>a...