df <- data.frame(rank=c('family','tribe','subtribe','genus','subgenus','species'),
name=c('Helianthi','Helianthi','Helianthi','Poa','Festuci','Poa annua'),
id=c(1,2,3,4,5,6),
stringsAsFactors = FALSE)
apply(df, 1, make_taxon_fromclass)
Run the code above in your browser using DataLab