digivet-consortium / movenet

Generating network representations for livestock movement (and associated) data
https://digivet-consortium.github.io/movenet/
GNU General Public License v3.0
2 stars 3 forks source link

anonymise(data, key) assumes numbering in key starts at 1 #81

Open CarlijnB opened 2 months ago

CarlijnB commented 2 months ago

Anonymise(data, key) assumes key numbering starts at 1, sometimes falsely.

anonymise(example_movement_data, prefix = "holding", key = c("24/942/9396" = "holding100")) results in a duplicate "holding100" in the key: holding100, holding2, holding3, ..., holding99, holding100, ..., holdingN