delete collapeByIds.R