Skip to content

make jitter_weights() return relevant number of decimals #79

Description

@CarlijnB

Currently, the use of runif() results in numbers with lots of decimal places.
The extra decimals are particularly annoying/irrelevant when input is integer-ish
-> suggest either replacing the sampler with sample(seq(-range, range, max_n_decimals_in_weights_col), length(data[[column]]), replace = TRUE) or adding a rounding function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions