# NOT RUN {
# creating single conditions for 'where' parameter
# let's see anchors of all backlinks detected in 2018
cond_1 <- RAhrefs::rah_condition(
column_name = "first_seen",
operator = "GREATER_OR_EQUAL",
value = "2018-01-01",
is_date = TRUE)
cond_2 <- RAhrefs::rah_condition(
column_name = "first_seen",
operator = "LESS_OR_EQUAL",
value = "2018-12-31",
is_date = TRUE)
# joining conditions into one condition set
cond_where <- RAhrefs::rah_condition_set(cond_1, cond_2)
# downloading
b <- RAhrefs::rah_anchors(
target = "ahrefs.com",
limit = 2,
where = cond_where,
order_by = "refpages:desc")
# }
Run the code above in your browser using DataLab