From pruned data removes queries longer than a specific number of characters
Source:R/prune.R
kwr_prune_long_queries.Rd
Very long queries tend to be too specific and you may want to exclude them from the analysis. That's what this function is for.
Arguments
- kwr
A
kwresearch
object.- longer_than
A number.
Examples
queries <- data.frame(
query = c(
"seo",
"this is a very long query made up of 67 characters including spaces"
),
volume = c(1000, 5)
)
kwr <- kwresearch(queries)
kwr_long_queries(kwr, longer_than = 65)
#> # A tibble: 1 × 2
#> query_normalized volume
#> <chr> <dbl>
#> 1 this is a very long query made up of 67 characters including spaces 5
kwr <- kwr_prune_long_queries(kwr, longer_than = 65)