search for: mao

Displaying 20 results from an estimated 107 matches for "mao".

Did you mean: mac
2012 Nov 10
1
Jian-Feng Mao wants to share new pictures with you
Zoosk Hi , Jian-Feng Mao sent you an invite on Zoosk. [1]View Invite This message was sent by a Zoosk user who entered your email address. If you'd prefer not to receive emails when other people send you emails through Zoosk, [2]click here You have received this message at the email address: [3]r-help...
2009 Apr 10
4
split a character variable into several character variable by a character
Dear Mao Jianfeng, "r-help-owner" is not the place for help, but: r-help at r-project.org (CC-ed here) In any case, strsplit() does the job, i.e.: > unlist(strsplit("BCPy01-01", "-")) [1] "BCPy01" "01" You can work with the whole variable, like: splitp...
2009 Jun 09
4
how to substitute missing values (NAs) by the group means
...(doBy) df<-orderBy(~group,data=df) # succeeded f1<-function(x){m<-mean(x, na.ram=TRUE); x[is.na(x)]<-m; x} # succeeded datatraits<-lapplyBy(traits~group,data=df, FUN=f1(traits)) # failed errors: mean(x, na.ram = TRUE), can not find 'traits'. Thanks in advance. Sincerely, Mao J-F [[alternative HTML version deleted]]
2010 Jul 09
3
how to plot two histograms overlapped in the same plane coordinate
...m(100, 1.5, 1), rnorm(100, 5, 1)) sex<-c(rep("F",100), rep("M", 100)) mydata<-cbind(age, sex) mydata<-as.data.frame(mydata) head(mydata) qplot(age, data=mydata, geom="histogram", fill=sex, xlab="age", ylab="count", alpha=I(0.5)) Best, Mao J-F
2020 Aug 20
0
[PATCH AUTOSEL 5.8 21/27] virtio_ring: Avoid loop when vq is broken in virtqueue_poll
From: Mao Wenan <wenan.mao at linux.alibaba.com> [ Upstream commit 481a0d7422db26fb63e2d64f0652667a5c6d0f3e ] The loop may exist if vq->broken is true, virtqueue_get_buf_ctx_packed or virtqueue_get_buf_ctx_split will return NULL, so virtnet_poll will reschedule napi to receive packet, it will lead...
2020 Aug 20
0
[PATCH AUTOSEL 5.7 19/24] virtio_ring: Avoid loop when vq is broken in virtqueue_poll
From: Mao Wenan <wenan.mao at linux.alibaba.com> [ Upstream commit 481a0d7422db26fb63e2d64f0652667a5c6d0f3e ] The loop may exist if vq->broken is true, virtqueue_get_buf_ctx_packed or virtqueue_get_buf_ctx_split will return NULL, so virtnet_poll will reschedule napi to receive packet, it will lead...
2020 Aug 20
0
[PATCH AUTOSEL 5.4 17/22] virtio_ring: Avoid loop when vq is broken in virtqueue_poll
From: Mao Wenan <wenan.mao at linux.alibaba.com> [ Upstream commit 481a0d7422db26fb63e2d64f0652667a5c6d0f3e ] The loop may exist if vq->broken is true, virtqueue_get_buf_ctx_packed or virtqueue_get_buf_ctx_split will return NULL, so virtnet_poll will reschedule napi to receive packet, it will lead...
2020 Aug 20
0
[PATCH AUTOSEL 4.19 14/18] virtio_ring: Avoid loop when vq is broken in virtqueue_poll
From: Mao Wenan <wenan.mao at linux.alibaba.com> [ Upstream commit 481a0d7422db26fb63e2d64f0652667a5c6d0f3e ] The loop may exist if vq->broken is true, virtqueue_get_buf_ctx_packed or virtqueue_get_buf_ctx_split will return NULL, so virtnet_poll will reschedule napi to receive packet, it will lead...
2020 Aug 20
0
[PATCH AUTOSEL 4.14 11/13] virtio_ring: Avoid loop when vq is broken in virtqueue_poll
From: Mao Wenan <wenan.mao at linux.alibaba.com> [ Upstream commit 481a0d7422db26fb63e2d64f0652667a5c6d0f3e ] The loop may exist if vq->broken is true, virtqueue_get_buf_ctx_packed or virtqueue_get_buf_ctx_split will return NULL, so virtnet_poll will reschedule napi to receive packet, it will lead...
2020 Aug 20
0
[PATCH AUTOSEL 4.9 09/11] virtio_ring: Avoid loop when vq is broken in virtqueue_poll
From: Mao Wenan <wenan.mao at linux.alibaba.com> [ Upstream commit 481a0d7422db26fb63e2d64f0652667a5c6d0f3e ] The loop may exist if vq->broken is true, virtqueue_get_buf_ctx_packed or virtqueue_get_buf_ctx_split will return NULL, so virtnet_poll will reschedule napi to receive packet, it will lead...
2020 Aug 20
0
[PATCH AUTOSEL 4.4 08/10] virtio_ring: Avoid loop when vq is broken in virtqueue_poll
From: Mao Wenan <wenan.mao at linux.alibaba.com> [ Upstream commit 481a0d7422db26fb63e2d64f0652667a5c6d0f3e ] The loop may exist if vq->broken is true, virtqueue_get_buf_ctx_packed or virtqueue_get_buf_ctx_split will return NULL, so virtnet_poll will reschedule napi to receive packet, it will lead...
2009 Apr 09
2
failed when merging two dataframes, why
....6555006 BCPy01-03 BCPy01-03-1 0.8683875 code: new1<-merge(df1,df2,by=c("popcode","popcode"),all=T) # It is processed well. But, it is not what I want. new2<-merge(df1,df2,by=c("codetot","codetoto"),all=T) # this one failed. I exactly want to do that. Mao J-F IBCAS, AC [[alternative HTML version deleted]]
2002 May 02
1
how to trap any warnings from an R function -- again :(
...actually shows NaN's in the coefficients, without any printed error message as that in the 1st instance. Where do I look to see why any error should escape? -----Original Message----- From: Prof Brian D Ripley [mailto:ripley at stats.ox.ac.uk] Sent: Tuesday, April 30, 2002 10:00 AM To: Boryeu Mao Cc: 'Jason Turner'; r-help at stat.math.ethz.ch Subject: RE: [R] how to trap any warnings from an R function On Tue, 30 Apr 2002, Boryeu Mao wrote: > Thanks for the reply. The problem that I have in a nutshell is the > following: > > usertest <- function { > ... >...
2009 Feb 23
1
how todefine an variable/column in a dataframe as numeric mode
...dataset is usually be readed as "factor" (variable mode), however I want it be a "numeric" one. I want to know how can I define an variable/column in a dataframe as numeric mode, after I imported a large dataset using read.delim() from a txt file. Thanks a lot in advance. Mao J-F State Key Lab of Systematics and Evolutionary Botany Institute of Botany Chinese Academy of Sciences Beijing, China [[alternative HTML version deleted]]
2009 Aug 19
2
Why are there small circles in my plot
...) points(myda$traits[factor==c("Jone")], rep(-0.02, length(myda$traits[factor==c("Jone")])), pch="|", col=3) points(myda$traits[factor==c("Mike")], rep(-0.03, length(myda$traits[factor==c("Mike")])), pch="|", col=4) Best Regards, Yours, Mao J-F
2010 May 25
1
how to update R10.0 to R11.0 in Ubuntu linux
...file in my computer. 2. To install the complete R system, use sudo apt-get update sudo apt-get install r-base I can correctly install R 10.0 monthes ago. But now I do know how to update R 10.0 to a higher R version. I am definitely need your help. Thanks a lot in advance. Best regards, Mao J-F
1999 May 09
1
subscripting in list() (PR#187)
...ible if I dont' assign something else to it in advance. (although a walk around would be mylist[1] <- list(1)) In SPLUS 4 or 3.4, the reactions are different: > mylist <- list() > mylist[[1]] NULL > mylist[[1]] <- c(1) > mylist [[1]]: [1] 1 On Sun, 9 May 1999, Wenxin Mao wrote: > Date: Sun, 9 May 1999 12:42:29 -0400 (EDT) > From: Wenxin Mao <mao@stat.wharton.upenn.edu> > To: r-bugs@biostat.ku.dk > Subject: subscripting in list() > > > In R, (0.64 Binary, Linux 5.0) I tried this command and get an error > message: > > > myl...
2011 Jan 13
1
how to calculate the consistency of different clusterings
...ta <- data.frame(individual = paste("ind", 1:12, sep = ""), populations = c(rep("popA", 5), rep("popB", 7)), cluster.1 = c(rep(1, 5), rep(2, 7)), cluster.2 = c(rep(2, 4), rep(1, 8)), cluster.3 = c(rep(4, 7), rep(5, 5))) clus.data Thanks. -- Jian-Feng, Mao the Institute of Botany, Chinese Academy of Botany,
2009 Aug 19
2
how to fill the area under the density line with semitransparent colors
..., col=2) points(myda$traits[factor==c("Jone")], rep(-0.02, length(myda$traits[factor==c("Jone")])), pch="|", col=3) points(myda$traits[factor==c("Mike")], rep(-0.03, length(myda$traits[factor==c("Mike")])), pch="|", col=4) Regards, Yours Mao J-F
2002 Jun 04
2
machine dependency [polr()/optim()]
...ively if the number of columns is smaller. (A few more details: For the IRIX, the R binary was built with "-O2 -64" for all compilers (f77 included), and on Linux, "-O2".) Help and suggestions/hints for further narrowing the sources are appreciated. Thanks in Advance. Boryeu Mao -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat....