Displaying 1 result from an estimated 1 matches for "classwidth".
2005 Nov 11
0
strange classification behaviour
...eturns a 'binned' version with a requested bin width and converted to an ordered factor by default. It also attempts to make sure that all factor levels intermediate to the input range are present.
>
> This is the code as I currently have it:
>
> Classify <- function( values, ClassWidth=0.05, ordered.factor=TRUE, all=TRUE )
> {
> valuesName <- deparse(substitute(values))
> if( is.numeric(values) ){
> values <- floor( (values+ (ClassWidth/2) ) / ClassWidth ) * ClassWidth
> # determine the numerical range of the input
> leve...