Learn R Programming

centrifugeR (version 0.1.4)

rotorCheck: Check Centrifuge Rotors

Description

rotorCheck returns the numbers of tubes that can and cannot be loaded in a single operation.

Usage

rotorCheck(n, k = NULL)

Arguments

n

an integer, the number of rotor buckets.

k

an integer, the number of tubes.

Value

rotorCheck returns a list with two components:

valid

a vector containing the numbers of tubes that can be loaded.

invalid

a vector containing the numbers of tubes that cannot be loaded.

Details

The number of rotor buckets n ranges from 4 to 48. If k is specified, rotorCheck will check whether the input number of tubes can be loaded or not.

References

Sivek G. On vanishing sums of distinct roots of unity. Integers. 2010;10(3):365-8.

See Also

rotorEqual for balancing tubes of equal mass and rotorUnequal for balancing tubes of unequal mass.

Examples

Run this code
# NOT RUN {
rotorCheck(30)
rotorCheck(30, 19)

# }

Run the code above in your browser using DataLab