Skip to contents

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.

Usage

kwr_prune_long_queries(kwr, longer_than = 60)

Arguments

kwr

A kwresearch object.

longer_than

A number.

Value

A kwresearch object with pruned data and status = 'pruned'.

See also

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)