View source: R/oracle_unnest_tokens.R
oracle_unnest_tokens | R Documentation |
A rip off of tidytext::unnest_tokens
that will work on lazy Oracle tables.
This function will retain all columns and add TOKEN_NUMBER and TOKEN columns
to the table.
oracle_unnest_tokens(df, col, drop = TRUE, pattern = "[:space:]")
df |
Lazy Oracle table |
col |
Column to be tokenised |
drop |
Whether original input column should get dropped |
regex |
regex to tokenise by |
Inspiration: https://stackoverflow.com/questions/59537458/how-to-pipe-sql-into-rs-dplyr
## Not run:
table_db %>% nhsbsaR::oracle_unnest_tokens(col = "DUMMY")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.