Displaying 1 result from an estimated 1 matches for "valuesname".
Did you mean:
valuename
2005 Nov 11
0
strange classification behaviour
...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
> levels <- range( values, finite=TRUE )
> if( ordered.f...