Switching R data structure to a basic list