powered by
rotorVerify checks whether the rotor is balanced given the positions of tubes of equal mass.
rotorVerify
rotorVerify(n, pos)
an integer, the number of rotor buckets.
an integer vector, the positions of tubes.
rotorVerify returns 1 if the rotor is balanced and 0 if the rotor is unbalanced.
1
0
The number of rotor buckets n ranges from 4 to 48. The positions of tubes pos ranges from 1 to n.
n
4
48
pos
Johnsson M. Balancing a centrifuge. R-bloggers. 2016. Available from: https://www.r-bloggers.com/2016/06/balancing-a-centrifuge/.
rotorCheck for checking centrifuge rotors.
rotorCheck
# NOT RUN { rotorVerify(30, c(10, 20, 30)) rotorVerify(30, c(1, 11, 21, 4, 28)) # }
Run the code above in your browser using DataLab