Skip to contents

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.

Examples

sf_parse_follow(c("True", "nofollow", "yes", "", NA))
#> [1]  TRUE FALSE  TRUE    NA    NA