R package for converting network data objects between different classes