Skip to content

classIntervals: 'probs' argument to 'quantile' not allowed as documented #1

@AMBarbosa

Description

@AMBarbosa

Hi,

The classIntervals help file says that 'The "quantile" style provides quantile breaks; arguments to quantile may be passed through ...', but apparently the probs argument isn't allowed, as it is already set by classIntervals:

data_censored<-c(rep(0,10), rnorm(100, mean=20,sd=1),rep(26,10))
plot(density(data_censored))
classIntervals(data_censored, style="quantile", probs = seq(0, 1, 0.25))
# Error in quantile.default(x = var, probs = seq(0, 1, 1/n), ...) : 
#  formal argument "probs" matched by multiple actual arguments

I'd suggest documenting this, or else allowing the user to choose the probs, even if their default is still seq(0, 1, 1/n) (as seen in the classIntervals code).

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions