add_text | R Documentation |
Obtain Text from Download Links and Add to Data Frame
add_text(df, all = FALSE)
df |
data frame produced by |
all |
logical; TRUE if you want to include all attachments for each comment, FALSE if you want to include only one. The default value is FALSE. If you choose TRUE, note that the attachments may include duplicated text, so this should be considered for further analysis. |
data frame with all columns of df
as well as an additional column text
that
contains the text from the attachment in the download link for that commend ID (if present).
## Not run: result <- get_all_documents(documentId = c( "FDA-2012-S-1144-0322", "NHTSA-2008-0060-0827", "DOT-OST-2018-0206-0008", "CMS-2018-0104-0001" )) resul <- add_text(result) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.