Personal ‘R’ Package of ‘hrbrmstr’
Tools and functions primarily of use to hrbrmstr.
The following functions are implemented:
as_date
: Shortcut to avoid specifying origindo_call
: data first do.callhas_bom
: Tests whether a raw httr response or character vector has a byte order mark (BOM)has_env
: Does the environment variable exist?is_empty_string
: Is a string equivalent to “”is_zero_length
: Is length 0last_el
: get last elementmake_numeric
: Clean up a character vector to make it numericmake_percent
: Clean up a character vector to make it a percentmap_field_list
: data first lapply ‘[[’map_field_simple
: data first sapply ‘[[’%fmin%
: Shortcuts for fmatch and match operationsmonth
: Mont of date objectnull-or-zero-or-na
: Is an object NULL or length zero or NAnull-or-zero
: Is an object NULL or length zeropf_grep
: data first greppf_grepl
: data first greplpf_gsub
: data first gsubpf_sub
: data first subqp_decode
: Decode a quoted printable stringrow_bind_lst
: data first do.call/rbind.data.framerow_bind
: shorter name for rbind.data.framesans_bom
: Remove byte order mark (BOM) from httr::response object or character vectorstrsplit_one
: data first strsplityear
: Year of date objectzeek_conn_states
: Zeek conn-log connection state values and descriptions
remotes::install_github("hrbrmstr/hrbrmisc")
NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.
library(hrbrmisc)
# current version
packageVersion("hrbrmisc")
## [1] '0.3.0'
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.