Extract the total number of carbons from a lipid annotation name. For example, the carbon chain length of lipid PC 34:2 is 34. The lipid names must be first cleaned by format_lipid_name.

nCarbons(x)

Arguments

x

character. The lipid annotation name. Must be first cleaned by format_lipid_name.

Value

integer