R/attr_href.R

Defines functions attr_href

Documented in attr_href

#' Get hypertext reference attributes
#'
#' @param x A document (from read_html()), node set (from html_elements()), node (from html_element()), or session (from session()).
#'
#' @return hypertext reference attributes
#' @export
#'
attr_href <- function(x){
    rvest::html_attr(x,'href')
}

Try the do package in your browser

Any scripts or data that you put into this service are public.

do documentation built on Aug. 3, 2021, 5:06 p.m.