Description Usage Arguments Details Examples
This function takes a vector input and searches presence of any text that appears to be an email.
1 | search_ssn(vec, output)
|
vec |
A vector input whose contents need to be searched for references to SSNs. |
output |
The desired output of function. Defaults to "vector" where T/F vector result is returned. The argument "dt" will output a table of original vector input, T/F vector result, and the matching substring. |
The default output is a TRUE/FALSE vector but the function can also return a dataframe of the original vector input, the TRUE/FALSE result, and the substring that matched the social security number pattern.
1 2 3 4 5 6 7 8 9 10 11 12 13 | set.seed(2)
testcase <- data.frame(name = generator::r_full_names(2),
ssn = generator::r_national_identification_numbers(2),
dob = generator::r_date_of_births(2),
email = generator::r_email_addresses(2),
ip = generator::r_ipv4_addresses(2),
phone = generator::r_phone_numbers(2),
credit_card = generator::r_credit_card_numbers(2),
lat = generator::r_latitudes(2),
lon = generator::r_longitudes(2),
stringsAsFactors = FALSE)
search_ssn(testcase$ssn)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.