List queries that are not classified in all or specified dimensions
Source:R/kwresearch.R
kwr_unclassified_queries.Rd
List queries that are not classified in all or specified dimensions
Arguments
- kwr
A
kwresearch
object.- label
An optional dimension names as a character vector. If specified, classification in only those dimensions is considered.
- q
An optional regular expression to filter the output queries.
Examples
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)
#> Label:my_label
kwr_unclassified_queries(kwr)
#> # A tibble: 1 × 7
#> query_normalized n_queries volume cpc query_original input source
#> <chr> <int> <dbl> <dbl> <chr> <chr> <chr>
#> 1 keyword research 1 500 NA keyword research NA NA
file.remove(recipe_file)
#> [1] TRUE