companies: Startup company information for 1,000 companies

Description Usage Format Examples

Description

From: http://jsonstudio.com/resources/

Usage

1

Format

JSON

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
library(dplyr)
library(jsonlite)

# Print the first record (do not run automatically)
# companies[[1]] %>% prettify

# Get the key employees data
key_employees <- companies %>%
  spread_values(
    name = jstring("name")
  ) %>%
  mutate(
    company.sort_order = rank(name)
  ) %>%
  enter_object("relationships") %>%
  gather_array("relationship.index") %>%
  spread_values(
    is.past = jlogical("is_past"),
    name = jstring("person", "permalink"),
    title = jstring("title")
  )

# Show the top 10 titles
key_employees %>%
  filter(!is.past) %>%
  group_by(title) %>%
  tally() %>%
  arrange(desc(n)) %>%
  top_n(10)

sailthru/tidyjson documentation built on May 29, 2019, 12:59 p.m.