Learn R Programming

slowraker (version 0.1.1)

rbind_rakelist: rbind a rakelist

Description

rbind a rakelist

Usage

rbind_rakelist(rakelist, doc_id = NULL)

Arguments

rakelist

An object of class rakelist, which you create by calling slowrake.

doc_id

An optional vector of document IDs, which should be the same length as rakelist. These IDs will be added to the resulting data frame.

Value

A single data frame which contains all documents' keywords. The doc_id column tells you which document a keyword was found in.

Examples

Run this code
# NOT RUN {
rakelist <- slowrake(txt = dog_pubs$abstract[1:2])

# Without specifying doc_id:
head(rbind_rakelist(rakelist = rakelist))

# With specifying doc_id:
head(rbind_rakelist(rakelist = rakelist, doc_id = dog_pubs$doi[1:2]))
# }

Run the code above in your browser using DataLab