search for: partytot

Displaying 1 result from an estimated 1 matches for "partytot".

Did you mean: partiton
2006 Feb 18
3
Bug in Sweave? -- scoping problem? (PR#8615)
...e found a strange scoping problem in Sweave. The following Rnw file doesn't produce the same output in Sweave as it does if I produce an R file using Stangle and execute that: \documentclass[12pt]{article} \begin{document} <<R>>= election <- data.frame(A=1:3, B=9:7, C=rep(0,3)) partytotal <- rep(0, ncol(election)) for (i in 1:ncol(election)) { partytotal[i] <- sum(election[,i], na.rm=TRUE) } @ <<fig=true,width=12,height=6,echo=true>>= names(partytotal) <- names(election) partytotal <- sort(partytotal) partytotal dotchart(partytotal) @ \end{document}...