Learn R Programming

hackeRnews (version 0.2.1)

get_comments: Hacker News nested comments

Description

Retrieves all comments under an item using Hacker News API

Usage

get_comments(item)

Value

dataframe of all comments under an item

Arguments

item

item whose children (comments) will be retrieved

Examples

Run this code
# \donttest{
story <- get_item_by_id(21499889)
comments <- get_comments(story)

# Convert to a tibble to improve formatting
# as comment content might long
tibble::as_tibble(comments)
# }

Run the code above in your browser using DataLab