options(warn=2) to convert the warning to an error, then you can use traceback to hunt for the issue. --Matt --Original Message-- From: s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@list
If I'm understanding what you need, I think sample() would do what you want. x <- sample( 0:4, 100, replace=TRUE) Check ?sample for all the options. --Matt --Original Message-- From: s-news-owner@lis
subtitles, you could use the following (assuming myfun() does the plotting). mtext() could replace title() for more control. by(my.dat, list(my.dat$agecat,my.dat$race), FUN=function(x){ myfun(x) tit
way would be to scale the two values, plot them together and then rescale the vertical axis. I'm not sure how you would want to label the vertical axis to be clear, but here is one example: n <- 100
Here is a trivial example of what may be happening. Note that dataframe yy contains duplicate values of the 'by' variable, so it is duplicated in the merge. xx <- data.frame(var1=c('a', 'b', 'c'), va
Matt Austin Statistician Amgen One Amgen Center Drive M/S 24-2-C Thousand Oaks CA 93021 (805) 447 - 7431 "Today has the fatigue of a Friday and the desperation of a Monday" -- S. Pearce 2005
need to have the MASS library loaded (that's where max.col() is defined) --Matt Matt Austin Statistician Amgen One Amgen Center Drive M/S 24-2-C Thousand Oaks CA 93021 (805) 447 - 7431 --Original Me
CREEK SITE ASTR CASP COTT CYSP 1 CACFD 1005 NA NA NA NA 2 CACFD 1006 2 NA NA 1 3 CACFD 1007 NA NA 42 NA 4 CACFD 1014 NA NA 12 NA 5 CACFD 1018 NA 3 94 1 6 CACFD 9014 NA NA NA 2 CREEK SITE ASTR CASP C