Description Usage Arguments Examples
Apply quanteda to text data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | qe_data(
data,
text_columns = NULL,
id_column = NULL,
join_data = T,
method = "word",
remove_words = c("\\.", "\\-", "\\#", "\\'", "\\,", "\\;", "\\_",
"\\DESCRIPTION:", "\\:", "\\SBIR", "\\I ", "\\II ", "\\III ", "PHASE"),
dfm_dictionary = NULL,
n_top_features = 10,
stem = F,
remove_numbers = T,
remove_punct = T,
remove_symbols = T,
exclude_features = F,
remove_separators = TRUE,
remove_twitter = T,
remove_hyphens = T,
collocation_size = 2,
include_textstat = F,
remove_url = T,
stop_sources = c("smart", "snowball", "stopwords-iso"),
n_gram_tokens = 2:3,
include_dfm = F,
verbose = T
)
|
data |
|
text_columns |
vector text columns |
id_column |
if not |
join_data |
if |
method |
what the unit for splitting the text, available alternatives are:
|
dfm_dictionary |
if not |
n_top_features |
if not |
stem |
if |
remove_numbers |
logical; if |
exclude_features |
if |
remove_separators |
logical; if |
remove_twitter |
logical; if |
remove_hyphens |
logical; if |
collocation_size |
integer collocation size for texstat parameter |
include_textstat |
if |
remove_url |
logical; if |
stop_sources |
stopword source
|
n_gram_tokens |
|
include_dfm |
if |
verbose |
if |
1 2 3 4 | library(tidyverse)
data <- tibble(idSBIR = 190558, nameAward = "WEB-BASED NUTRITION EDUCATION FOR COLLEGE STUDENTS", descriptionAward = "THE NEGATIVE HEALTH AND SOCIAL CONSEQUENCES OF POOR NUTRITION ARE WELL DOCUMENTED IN COLLEGE STUDENTS AND THE OUTCOME OF POOR EATING HABITS IS MANIFEST IN BOTH OBESITY AND A VARIETY OFHEALTH CONCERNS. THIS APPLICATION PROPOSES THE DEVELOPMENT OF A COLLEGE STUDENTWEBSITE CALLED MYSTUDENTBODY.COM (NUTRITION), TO BE BASED AT A COLLEGE PERSONALHEALTH INTERNET PORTAL CALLED MYSTUDENTBODY.COM. THE PROGRAM WILL BE OFFEREDTHROUGH COLLEGES AND UNIVERSITIES TO EDUCATE STUDENTS ABOUT HEALTHY NUTRITIONAND LEARN EFFECTIVE, TAILORED HEALTHY EATING STRATEGIES. USING INTERACTIVE,WEB-BASED TECHNOLOGY, THIS PSYCHOEDUCATIONAL PROGRAM WILL BE SUPPORTED BY ANUMBER OF UNIQUE FEATURES THAT WILL MAKE IT A TRUE INNOVATION IN THE AREA OFNUTRITION EDUCATION FOR COLLEGE STUDENTS. MYSTUDENTBODY.COM (NUTRITION) WILLGUIDE STUDENTS THROUGH AN INTERACTIVE PROGRAM DESIGNED TO TEACH EFFECTIVENUTRITION EDUCATION IN AN INTERNET CONTEXT THAT IS INFORMATIVE, ENGAGING, ANDDRAMATIC. THE CURRENT APPLICATION COMBINES STATE-OF-THE-ART KNOWLEDGE ABOUTTAILORING STRATEGIES WITH ADVANCES IN INTERNET-BASED TECHNOLOGIES.MYSTUDENTBODY.COM (NUTRITION) OFFERS AN ONLINE PERSONALIZED NUTRITION EDUCATIONPROGRAM ALLOWING STUDENTS TO RECEIVE EMPIRICALLY-BASED INFORMATION AND FEEDBACKIN A CONFIDENTIAL MANNER.")
qe_data(data = data, id_column = "idSBIR", text_columns = c("nameAward", "descriptionAward"), n_gram_tokens = 2:3, n_top_features = 5) %>% glimpse()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.