search for: pcts

Displaying 5 results from an estimated 5 matches for "pcts".

Did you mean: acts
2012 Jun 19
1
Scaling a "density".
Folks, I have a small dataset of counts of recoveries on defaulted loans: recoveries<-structure(c(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 0, 0, 0, 0, 0, 4, 0, 1, 2, 2, 12), .Dim = c(11L, 2L), .Dimnames = list( NULL, c("pcts", "counts"))) Here is the data in columnar form: pcts counts [1,] 0.0 0 [2,] 0.1 0 [3,] 0.2 0 [4,] 0.3 0 [5,] 0.4 0 [6,] 0.5 4 [7,] 0.6 0 [8,] 0.7 1 [9,] 0.8 2 [10,] 0.9 2 [11,] 1.0 12 For example row [...
2010 Mar 10
1
pie EPS BB
...PS file with the BoundingBox *exactly* containing the pie-chart, i.e. the pie-chart boundary touches the four sides of the BoundingBox, and its centre is at the centre of the BoundingBox. This is the puzzle I have not been able to solve. Here is an example of the sort of thing I have been trying. pcts <- c(3.0,2.0,0.4,10.0,12.0,3.0,39.0,14.0,7.0,9.6) postscript("piecharttest.eps",horizontal=FALSE, paper="special",width=3.0,height=3.0) pie(pcts, clockwise=TRUE, labels=rep(NA,10), radius=1.0) dev.off() With pie(pcts, clockwise=TRUE, labels=rep(NA,10), radius=1....
2011 Apr 21
1
Stymied by plyr
...7777 11 0 3 6 17 77777 11 0 3 7 18 77777 11 0 3 8 19 77777 11 0 3 9 20 77777 11 0 3 10 I thought this would be a perfect application for plyr. I tried this: calc.pct <- function(x) { table(x)/sum(table(x)) } pcts <- ddply(test.school, .(area, ext.obs, comp), calc.pct, x=rating) Error in .fun(piece, ...) : unused argument(s) (piece) Then I tried this: pcts <- ddply(test.school, .(area, ext.obs, comp), .(calc.pct(rating))) Error in .fun(piece, ...) : attempt to apply non-function I tried all kinds of...
2012 Jul 06
3
Tables extraction in R ?
Hi, I 'm a novice user of R statistics and my hands-on experience with it is minimal. I want to create a table for my MBA course assignment that looks like the ones that SPSS and MS Excel produces ,the data that the table has to include are the following : > table(agec) agec 1 2 3 749 160 32 > x=table(agec) > x agec 1 2 3 749 160 32 > > prop.table(x) agec
2014 Nov 25
0
problem with setGroupGeneric from package methods
...The package in question is a pure R package with no OS specific code. The error message in all cases is: Error in .setupMethodsTables(generic) : trying to get slot "group" from an object of a basic class ("NULL") with no slots Error: package or namespace load failed for 'pctsData' Similar problem has been reported before at http://stackoverflow.com/questions/12368439/defining-group-generic-functions-in-an-r-package A solution given by Romain Francois was to enclose the offending code in evalqOnLoad() but this doesn't really solve the problem. The code in tha...