Hello List members,
the following improvements would be useful for function cut (and .bincode): 1.) Argument: Include extremes extremes = TRUE if(right == FALSE) { # include also right for last interval; } else { # include also left for first interval; } 2.) Argument: warn = TRUE Warn if any values are not included in the intervals. Motivation: - reduce risk of errors when using function cut(); Sincerely, Leonard ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.