Learn R Programming

healthforum (version 0.1.0)

scrape_groups_by_initial_letter: Scrape groups by initial letter

Description

Get posts and all the replies to the posts from groups by entering the initial letter of group names

Usage

scrape_groups_by_initial_letter(index, post_number_per_group = NULL, ...)

Arguments

index

The initial letter of groups. Can be one letter or a vector of letters.

post_number_per_group

The number of random posts to scrape per group. Default is NULL, which means scrape the total number of posts in each group

...

optional arguments to FUN.

Value

A data frame

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
## Get the posts data of groups whose names starting with the letter "a" and "z"
scrape_groups_by_initial_letter(index = "x", post_number_per_group = 1)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab