is_siren: is SIREN

Description Usage Arguments Value Examples

Description

is_siren detect if the variable match the pattern of a SIRENE number

Usage

1

Arguments

var

name of a variable

Value

a tibble with one boolean column

Examples

1
2
3
4
5
6
7
8
library("tibble")
table_datadetective <- tibble(
   v1 = c("123456789", "234567890"),
   v2 = c("1234567890123", "1234567890234")
   )

is_siren(var = table_datadetective$v1)
is_siren(var = table_datadetective$v2)

blaquans/tricky documentation built on May 12, 2019, 9:29 p.m.