BiologicalRecordsCentre / BRCindicators

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

Harmonization of MSI function #1

Open drnickisaac opened 6 years ago

drnickisaac commented 6 years ago

@AugustT MSI function is currently not compatible with the data structure for bma functions. I can convert it as follows

msi_data <- data_in msi_data$species <- as.factor(as.character(msi_data$species)) msi_data$index <- 10^(msi_data$index) # puts the data on the measurement scale msi_data$se <- msi_data$index * msi_data$se # delta method - the function actually does the reverse

But it would be better if all the functions accepted data in the same format. Either a wrapper function would do this conversion so that the published version of the MSI function would still be accessible OR allow input options within the function.

AugustT commented 6 years ago

will be addressed

drnickisaac commented 4 years ago

I'll be visiting Arco & Leo in the Hague soon after the Sprint, so I'd like to make this a priority

AugustT commented 4 years ago

Note that this is a sub-issue of #12