3
I have a database of information of consumption of animals. The date of beginning of collection of consumption of each animal is different. Here is an example with only two animals:
Animal Dia Consumo
5 2 1379
5 3 2264
5 4 2234
5 5 2204
5 6 2369
6 3 1379
6 4 2264
6 5 2234
6 6 2204
6 7 2369
I need to calculate two things: 1) Calculate the average and standard deviations of consumption of all animals based only on the first information collected from animal.
2) Calculate the average and intake deviation of each animal based on the first three information collected from each animal. In this case I need to generate a new table (dataframe) similar to the one below:
Animal Média Desvio
5 x1 y1
6 x2 y2
If anyone can help me
Thank you, that’s just what I needed
– Luciano Hauschild