[R] R optim() function

2020-10-29 Thread Baker, Kieran via R-help
this error, or know where I can locate the code for the C_optim function to continue trying to find the issue and a work around? Thanks for any help, Kieran [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To

[R] Excluding "small data" from plot.

2016-02-17 Thread Kieran
for reproducibility. set.seed(999) ltrfreq$type <- factor(sample(c("good","bad"), size = 780, replace = TRUE, prob = c(0.5,0.5))) # Here is the plot I want but this includes all 26 letters. ggplot(ltrfreq,aes(x=factor(letter),y=letterfreq, fill=type), color=type) + stat

[R] Panel plots for means of cyclical observations

2016-01-15 Thread Kieran
I want to create a panel plot using xyplot of a line graph whose x-axis is months of the year and y-axis is the average rainfall in a given month over the 6 years the data spans. There should be two levels in this panel plot: odd and even months. Creating this plot without splitting it into level

[R] survey package svystat objects from predict()

2012-02-13 Thread Kieran Healy
{ object<-object[[1]] } vv<-as.matrix(attr(object,"var")) if (!is.null(dim(object)) && length(object)==length(vv)) sqrt(vv) else sqrt(diag(vv)) } Instead of returning sqrt(vv) on each element, it calculates sort(diag(vv)) instead. At least I think this i

[R] giving factor names

2011-06-07 Thread kieran martin
ome) levelplot(resp~x*y|z,data=combo ,pretty=TRUE,region=TRUE,contour=FALSE) , so in this final graph I want the z=0.1, z=0.5 and z=2 in turn. Thanks, Kieran Martin University of Southampton [[alternative HTML version deleted]] __ R-help@r-