mac_to_binary_string: Convert MAC address character vector to a binary string...

Description Usage Arguments Value Examples

Description

Convert MAC address character vector to a binary string representation

Usage

1

Arguments

x

character vector of MAC address. Each MAC address can be in any case, the octets do not need to be 0-prefixed, and it doesn't matter if the octets are separated by a : or if they are just contiguous. If they _are_contiguous, that — by definition — means each octet is 0-prefixed.

Value

a character vector of binary strings

Examples

1
mac_to_binary_string(c("f023b9eb4204", "f0:23:b9:eb:42:4", "F023B9eB4204"))

hrbrmstr/MACtools documentation built on May 8, 2019, 12:55 p.m.