Re: [R] Can't rsync extsoft/3.6 when compiling R 3.6

2019-05-05 Thread Shuguang Sun
Jeroen Ooms writes: Now I can build R 3.6 in my Windows 10 box. Thanks. > On Thu, May 2, 2019 at 9:36 AM Martin Maechler > wrote: >> >> >>>>> Shuguang Sun >> >>>>> on Thu, 2 May 2019 12:57:37 +0800 writes: >> >> > H

[R] Can't rsync extsoft/3.6 when compiling R 3.6

2019-05-01 Thread Shuguang Sun
indows/extsoft/3.6/ . ) receiving incremental file list rsync: change_dir "/bin/windows/extsoft/3.6" (in CRAN) failed: No such file or directory (2) --8<---cut here---end--->8--- There is no "windows/extsoft/3.6/" and only up to

[R] BRugs has a bug to use OpenBUGS_PATH

2012-09-21 Thread Shuguang Sun
be version.full - NA. Otherwise, version.full can not be found if I set the environment variable OpenBUGS_PATH. Thank you all. Shuguang Sun __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] how could I use function in-visible to user in my code?

2011-05-23 Thread Shuguang Sun
Dear R user, How could I use function in-visible to user in my code? For example 'survfitKM' or 'survfit.formula' in package survival. These functions are in-visible to user. Thanks, Shuguang __ R-help@r-project.org mailing list

[R] Could I use R function lm or nlm in C code?

2011-04-23 Thread Shuguang Sun
directly? I thinks these functions are not included in the R's include directory. Do I need to get full R's source first? If I have get all R's source, is it enough that I only include the source file for function lm or nlm? system: Windows XP R 2.13.0 Rtools 2.13 Thanks for your advice. Shuguang

[R] How to generate a new factor variable by two other factor variables

2008-11-04 Thread Shuguang Sun
as factorC factorA factorB 0 0 0 0 0 0 1 1 0 2 0 1 3 1 1 -- Shuguang Sun Fudan University, China __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] How to generate a new factor variable by two other factor variables

2008-11-04 Thread Shuguang Sun
the data again to see how this option works mydata$factorC-apply(mydata,1,function(x){ ifelse(sum(x)==0,0, ifelse(x[1]==1 x[2]==0,1, ifelse(x[1]==0 x[2]==1,2,3))) } ) mydata HTH, Jorge On Tue, Nov 4, 2008 at 10:29 AM, Shuguang Sun [EMAIL PROTECTED] wrote: How to generate a new