sf_parse_follow: Parse a Screaming Frog follow flag to logical

View source: R/screaming_frog_contract.R

sf_parse_followR Documentation

Parse a Screaming Frog follow flag to logical

Description

Converts the values Screaming Frog writes in a "Follow" column into a logical vector. Matching is case-insensitive and whitespace is trimmed.

Usage

sf_parse_follow(x)

Arguments

x

A vector (typically character) of follow flags. "true", "yes", "1", and "follow" become TRUE; "false", "no", "0", and "nofollow" become FALSE.

Value

A logical vector the same length as x. Blank strings, NA, and unrecognized values yield NA.

See Also

Other Screaming Frog toolkit: sf_container_from_path(), sf_contract(), sf_graph_eligible(), sf_normalize_position(), sf_read_input(), sf_region_from_path(), sf_rel_nofollow()

Examples

sf_parse_follow(c("True", "nofollow", "yes", "", NA))

pagerankr documentation built on Oct. 1, 2026, 5:09 p.m.