This folder contains all datasets, R scripts and command files of analyses in the article: Nyman, T., Onstein, R. E., Silvestro, D., Wutke, S., Taeger, A., Wahlberg, N., Blank, S. M. & Malm, T. 2019. Early wasp plucks the flower: disparate extant diversity of sawfly superfamilies (Hymenoptera: 'Symphyta') may reflect asynchronous switching to angiosperm hosts. Biological Journal of the Linnean Society, in press. DOI: 10.1093/biolinnean/blz071 Analysis and program names are indicated in subfolder names, and some intermediate results are included. Note that in some trait-based analyses, the grass-feeding nematine tG3_Tenthredinidae_Nematinae_Pachynematus_vagus has been coded as a conifer feeder, i.e., as a 'dummy' representative of related conifer-feeding lineages within the 'Higher Nematinae'.