search for: renmin

Displaying 20 results from an estimated 76 matches for "renmin".

2008 Sep 13
4
bubble(circle) plot help.
I need help creating a bubbleplot, like a simple pseudo three dimensional scatterplot of circles whose sizes index a 3rd variable. I initially came across this at http://addictedtor.free.fr/graphiques/graphcode.php?graph=73 but the circleplot function does not exist in fbasic as listed in the document. _________________________________________________________________
2011 Feb 11
3
How can we make a vector call a function element-wise efficiently?
...approximate computation time is 100 days What a terrible thing to do!!! Any modification, nomatter how subtle, will be a big help for me Thank you in advance Yours sincerely ZhaoXing Department of Health Statistics West China School of Public Health Sichuan University No.17 Section 3, South Renmin Road Chengdu, Sichuan 610041 P.R.China __________________________________________________ ?????????????????????????????
2011 Jan 03
3
matrices call a function element-wise
...E<-fisher.test(matrix(c(A[i][j],B[i][j],C[i][j],D[i][j]),2))#call fisher.test for every element } } It is so time-consuming Need vectorization Yours sincerely ZhaoXing Department of Health Statistics West China School of Public Health Sichuan University No.17 Section 3, South Renmin Road Chengdu, Sichuan 610041 P.R.China [[alternative HTML version deleted]] __________________________________________________ 8O?lW"2aQE;"3,4sH]A?Cb7QSJOd?
2009 Mar 23
2
How to get commands history as a character vector instead of displaying them?
...packages: [1] stats graphics grDevices utils datasets methods base Regards, Yihui -- Yihui Xie <xieyihui at gmail.com> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China
2009 Apr 03
1
new line between '}' and 'else' in function body
...e { 2 } } > f(TRUE) [1] 1 > f(FALSE) [1] 2 Seems strange... Regards, Yihui -- Yihui Xie <xieyihui at gmail.com> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China
2009 Apr 03
2
extract tables as data.frames from HTML source
...buted a more general function (with the package XML or other packages). Thanks! Regards, Yihui -- Yihui Xie <xieyihui at gmail.com> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China
2010 Nov 20
1
Error in solve.default(V, W) with ProDenICA and the required sample size for stable result
...e N generally required for a stable and robust result? I tried a sample of N=30 and get a very fluctuated mixing matrix A with fastICA algorithm in package fastICA, and the results become quite stable for a similar sample with N=60. Thanks for your patient reply! -- Randel School of Statistics, Renmin University of China.
2011 Jan 11
1
how to use "apply" function partial to each vector of a matrix
...nefficency becomes a problem, so need vectorization the "apply" function will sum all of each vector, which is not my purpose Thank you in advance Yours sincerely ZhaoXing Department of Health Statistics West China School of Public Health Sichuan University No.17 Section 3, South Renmin Road Chengdu, Sichuan 610041 P.R.China __________________________________________________ ?????????????????????????????
2008 Sep 13
3
Beautify R scripts in microsoft word
I am generating a report containing several R scripts in the appendix. Is there any way to "beautify" the R source codes in microsoft word, similar to what we see in tinn-R ? Thanks _________________________________________________________________ [[alternative HTML version deleted]]
2008 Nov 14
1
Line breaks in mathematical formulae in Rd files (PR#13287)
...eaks and alignments using "&" will be available in math formulae. Regards, Yihui -- Yihui Xie <xieyihui at gmail.com> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China
2011 Jan 11
1
how to coerce part of each column of a matrix to a vector and merge them
...[1] 1 2 5 6 7 9 13 14 15 but when I want to do it to a large dataset, it's inefficiency becomes a problem, so need vectorization Thank you in advance Yours sincerely ZhaoXing Department of Health Statistics West China School of Public Health Sichuan University No.17 Section 3, South Renmin Road Chengdu, Sichuan 610041 P.R.China __________________________________________________ ???????????????
2008 Sep 14
5
Error Running TinnR with R
Hello All, I am using Tinn-R (v 2.0.0.7) integrated with R (v 2.7.2) on a 32-bit Windows Vista system. When I try to run a code and send it to R from Tinn-R, I get the following error message; ?Error in source(.trPaths[5], echo = T) : object ".trPaths" not found? I was using an earlier version of Tinn-R and R and I was not having problems till recently when R-sending started freezing
2008 Sep 11
9
How to load functions in R
Hello, I am trying to use self created functions in other scripts than the one where they are stored. For the moment I am using the following structure of commands to do that: 1. Load the text file with the functions in the current script: x=parse("path") 2. transform the tex in a function: f1=eval(x[1]), f2=eval(x[2]) if more than one function is stored in the text file 3. use the
2008 Sep 11
4
All possible pairs of two variables
I have two variables (x,y) : x : it takes all integer values from 0 to y and, y : takes all values from 0, 10 I am looking for some R code to find all possible pairs of (x,y). Can anyone please help me? New Email addresses available on Yahoo! Get the Email name you&#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! [[alternative HTML version
2009 Jun 20
2
Special characters in Rd example section will cause errors
...rev 48333 language R version.string R version 2.9.0 (2009-04-17) Regards, Yihui -- Yihui Xie <xieyihui at gmail.com> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China
2011 Feb 07
1
how to return multipy matrix in a function
...perator is invalid for atomic vectors the "returnfunction(mat)$value" should be 4,5,10 the "returnfunction(mat)$index" should be 3,1,2 Thank you in advance ZhaoXing Department of Health Statistics West China School of Public Health Sichuan University No.17 Section 3, South Renmin Road Chengdu, Sichuan 610041 P.R.China __________________________________________________ ????????????????????????????? ---------------------------------------------------------------------------- NOTICE: Please note that this eMail, and the contents thereof, is subject to the standard Sasol eM...
2008 Sep 10
2
relsurv package
Dear R-users, I have a couple of questions about the relsurv package: 1) when I try to run the example: fit <- rsmul(Surv(time,cens)~sex+as.factor(agegr)+ratetable(age=age*365.24,sex=sex,year=year),ratetable=slopop,data=rdata) with the datasets in the package (rdata and slopop) it gives me an error: Error in nrow(x) : object "x" not found 2) If I have a date format
2008 Oct 21
3
code works in R desktop but not iin RWeb - How do I modify to get it working in RWeb, please?
Hi, How are you? I have a quick question.... I have code that works perfectly with R desktop, but does not work with RWeb. Could you please tell me how to modify the code below so it will work with RWeb? #Read in txt file happyguys<-read.table("c:/test8.txt", header=TRUE, row.names=1) #Subset the txt file to only include certain values test<-subset(happyguys, GRADE == 7
2008 Sep 18
2
How to show complete time values in a plot x axis
Hello, I have the following data and I try to properly import it in R and plot the 4th column relative to time 1 2008-249 17:44:17.973 -2.27 00000000: Accepted 2 2008-249 17:44:18.014 -2.28 00000000: Accepted 3 2008-249 17:44:18.064 -2.29 00000000: Accepted 4 2008-249 17:44:18.123 -2.29 00000000: Accepted 5 2008-249 17:44:18.174 -2.29 00000000:
2011 Feb 12
1
how to improve the precison of this calculation?
...which is difficult for me PS: I don't want a perfect solution but a better one, which could have a higher discriminability than before Thank you in advance Yours sincerely ZhaoXing Department of Health Statistics West China School of Public Health Sichuan University No.17 Section 3, South Renmin Road Chengdu, Sichuan 610041 P.R.China __________________________________________________ ?????????????????????????????