Hello everyone, I want to do something on Calc and just can’t find a way to get it to work.
so I’m trying to make a file to manage the number and age of a bunch of mice for my lab, long story short my file is set up in lines, where i have litters of mice: number, sex, birthdate and age (in weeks, calculated based on “today()”), so it looks like " 5, , 01/04/2022, 2"
Now what i want to do is to pull a population graph like you often see when talking about the population increase or decline in country XYZ.
Using the “Frequency” function I can quite easily pull how many times the last “2” appears, but that only tell me how many litters of 2 week old mice I have. Because it’s a litter of 5 I would want this “2” to be counted five times, so that my frequency chart properly reports 5 mice of that age.
Does anyone knows how i could possibly do that ?
I understand that the easiest fix would be to always have one line per mouse, but sometimes they give birth to nine pups at once, and sometimes you have to move them around, so that would make keeping the file up to date quite a chore. maybe. also my file is arranged to mimic the arrangement of the cages in the animal facility, so adding and deleting lines all the time is sure to make a mess.
Edit: not quite as important, but if anyone happens to know how I can put a condition in the frequency counting process, that would also be great to count males and females separately.
Thank you very much !