nc_export_all_users: Export all users from the Neo4J database to a csv

View source: R/neo4j.R

nc_export_all_usersR Documentation

Export all users from the Neo4J database to a csv

Description

When reading data back into R, be sure to treat the id_str, to and from columns as character rather than integer or double, since Twitter user IDs are 64-bit and R does not have support for 64 bit integers or doubles. See examples for how to read safely exported data back into R without accidentally truncation of user IDs.

Usage

nc_export_all_users(cache_name, local_path)

Arguments

cache_name

the name of the cache and associated Docker container

local_path

path of csv

Examples


## Not run: 
nc_export_all_follows("aPPR", "~/follows.csv")

readr::read_csv(
  "~/follows.csv",
  col_types = list(
    from = col_character(),
    to = col_character()
  )
)

nc_export_all_users("aPPR", "~/users.csv")

readr::read_csv(
  "~/Desktop/users.csv",
  col_types = list(
    id_str = col_character()
  )
)

## End(Not run)


alexpghayes/neocache documentation built on March 30, 2022, 8:02 a.m.