BiologicalRecordsCentre / BRCindicators

An R package for creating indicators from trends data
4 stars 11 forks source link

Add a function to standardise data to a common value #45

Open drnickisaac opened 4 years ago

drnickisaac commented 4 years ago

to be called at line 103 of bayesian_meta_analysis Make it optional rescale_species already does this - utilise?

drnickisaac commented 4 years ago

I tried to write a bit of code today that would do this job. It's complicated because rescale_species uses a multiplier to scale the data. Steve Freeman prefers to start each time-series at zero, which requires a subtraction.

drnickisaac commented 4 years ago

I have now implemented this (locally). I've added an optional argument rescale_indices that defaults to NULL. It takes an integer determining the starting value for each species.

AugustT commented 4 years ago

Please only close once it is accepted into the repository