rbind_rakelist: rbind a rakelist

View source: R/rbind-rakelist.R

rbind_rakelistR Documentation

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

rakelist <- slowrake(txt = dog_pubs$abstract[1:2])

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

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

crew102/slowraker documentation built on Sept. 5, 2024, 11:22 a.m.