kwr_classify | R Documentation |
Classifies queries based on recipes in a YAML file
kwr_classify(kwr, recipe_file = NULL, quiet = FALSE)
kwr |
A |
recipe_file |
A path to a recipe file in YAML format. |
quiet |
If |
A kwresearch object in which the queries are classified according to the recipes in the provided YAML file. Any previous classification is preserved or updated.
queries <- data.frame( query = c("seo", "keyword research"), volume = c(1000, 500) ) kwr <- kwresearch(queries) recipe_file <- file.path(tempdir(), "my-recipes.yml") kwr_add_pattern( pattern = "seo", recipe_file = recipe_file, recipe_type = "label", dim_name = "my_label" ) kwr <- kwr_classify(kwr, recipe_file) kwr_queries(kwr) file.remove(recipe_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.