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)

Arguments

item

item whose children (comments) will be retrieved

Value

dataframe of all comments under an item

Examples

Run this code
# NOT RUN {
story <- get_item_by_id(21499889)
comments <- get_comments(story)
comments
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab