Skip to contents

Calculate elemental frequency ranges for a given mass which are suitable for molecular formula generation.

Usage

suitableElementRanges(mass)

Arguments

mass

molecular mass

Value

A list of minimum and maximum frequencies for each element.

Examples

suitableElementRanges(342.11621)
#> $C
#> [1]  0 29
#> 
#> $H
#> [1]  0 58
#> 
#> $N
#> [1]  0 15
#> 
#> $O
#> [1]  0 15
#> 
#> $P
#> [1] 0 7
#> 
#> $S
#> [1] 0 7
#>