## relative primary feather mass of the 10 primary feathers
## (as proportion of total feather mass) for Sanderlings
fm.sand <- c(0.0385, 0.0458, 0.0544, 0.0680, 0.0827, 0.1019,
0.1199, 0.1417, 0.1604, 0.1867)
ms2pfmg(3, 0.2) # single feather
ms2pfmg(3, 1)
ms2pfmg("5555500000", fm.sand)
## all feathers weighted equally
ms2pfmg("54321", c(1,1,1,1,1))
## with half scores
ms2pfmg("5 4.5 3 2.5 1", c(1,1,1,1,1), split = " ")
## moult scores for more than 1 bird
ms2pfmg(c("5,4.5,3,2.5,1", "5,3.5,3,2.5,2.5"), c(1,1,1,1,1), split = ",")
Run the code above in your browser using DataLab