Learn R Programming

hackeRnews (version 0.1.0)

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)
comments
# }

Run the code above in your browser using DataLab