rah_condition: Single condition creation for an Ahrefs API query

Description Usage Arguments Details Value See Also Examples

View source: R/condition.R

Description

This function create an optional single condition for report querying. It can only be used in where and having parameters and should only be used inside rah_condition_set function.

Usage

1
rah_condition(column_name, operator, value, is_date = FALSE)

Arguments

column_name

character string. Proper name of the column of the raport to query from

operator

character string. See more in details

value

character string or numeric/integer. Contains the value for a condition

is_date

logical, defaults to FALSE. If provided value is a date character string, should be set to TRUE. Works only for dates in 'YYYY-MM-DD' format.

Details

This function should be ALWAYS used inside rah_condition_set function. Options include:

Value

character string with formatted condition

See Also

Other Ahrefs conditions: rah_condition_set

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    ## Not run: rah_condition(column_name = "first_seen",
                           operator = "GREATER_THAN",
                           value = "2018-01-01",
                           is_date = TRUE)
 
## End(Not run)
    ## Not run: rah_condition(column_name = "links",
                           operator = "GREATER_THAN",
                           value = "10")

## End(Not run)

civitch/Doingbuzz-Ahrefs documentation built on Aug. 19, 2020, 12:06 a.m.