Reading in JSON data with jsonlite

  • Use read.csv() to read in the Trismegistos .csv file and save it as an object called trismegistos_all_export_geo.
  • Use read_json() from the jsonlite package to read in the .json file. This was a huge file and took between 10-15 minutes to finish loading. Save this as an object called pleiades_full_json.
    • simplifyDataFrame = T, puts lists containing only records (JSON objects) into a single data frame;
    • flatten = T, flattens nested data frames into a single data frame if possible;
  • Roger Bagnall, et al. (eds.), Pleiades: A Gazetteer of Past Places, 2016, <http://pleiades.stoa.org/> [Accessed: February 17, 2016].
  • H. Verreth, A survey of toponyms in Egypt in the Graeco-Roman period (Trismegistos Online Publications, 2), Leuven: Trismegistos Online Publications, 1253 pp.
  • Ooms J (2014). “The jsonlite Package: A Practical and Consistent Mapping Between JSON Data and R Objects.” arXiv:1403.2805 [stat.CO]https://arxiv.org/abs/1403.2805.

Leave a Reply

Your email address will not be published. Required fields are marked *