[Rd] Adding a survival object to a data frame (PR#10510)

2007-12-12 Thread edward . m
Full_Name: Edward McNeil Version: 2.6.1 OS: Windows Submission from: (NULL) (203.170.234.5) I want to show students how the survival object looks like in R. Reproducible example: library(MASS) data(Aids2) attach(Aids2) status - status==D stime - death-diag surv - Surv(stime, status) D -

[Rd] Merge (PR#9699)

2007-05-28 Thread edward . m
Full_Name: Edward McNeil Version: 2.5.0 OS: Windows XP Submission from: (NULL) (203.170.234.5) This is a new bug introduced to R2.5.0. Scenario: If one of the data frames to merge contains two variables that have the same name, then the data in first variable (of the same name) is copied to

Re: [Rd] Merge (PR#9699)

2007-05-28 Thread edward . m
Yes, it appears to have been resolved in R2.5.0pat, although the counter-example provided *does* fail in R2.5.0. A - data.frame(x=1:3, y=4:6, y=7:9, check.names=FALSE) B - data.frame(x=1:3, a=3:1) A x y y 1 1 4 7 2 2 5 8 3 3 6 9 B x a 1 1 3 2 2 2 3 3 1 merge(A, B) x y y.1 a 1 1 4 4 3 2 2

[Rd] Sys.setlocale upsets windows graphics device (PR#8887)

2006-05-22 Thread edward . m
Full_Name: Edward McNeil Version: 2.3.0 OS: Widows XP Submission from: (NULL) (203.170.234.5) Type the following: Sys.setlocale(LC_ALL,C) hist(1:10) CRASH __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Sys.setlocale upsets windows graphics device (PR#8887)

2006-05-22 Thread edward . m
Hi, We tried it on 3 separate windows XP computers using version 2.3.0. The original locale is set for Thailand on all 3. So how do we fix it? Is there another patch? And why does the crash not happen with earlier R versions (eg. 2.2.1) on the same computer? --- Sys.getlocale() [1]