exploringfinance / efutils

Utility functions used by Exploring Finance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

efutils

Dev Version

The goal of efutils is to provide Utility functions used by Exploring Finance.

Installation

This will not be submitted to CRAN. Install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("exploringfinance/efutils")

Example

This is a basic example which shows you how to solve a common problem:

library(efutils)
## basic example code

ef_conv_perc(.1234)
#> [1] "12.34%"

ef_date_diff('2020-01-01','2020-12-31',bus_only = TRUE)
#> Warning: 1 parsing failure.
#> row col expected actual
#>   1  -- a number     —*
#> Warning: 1 parsing failure.
#> row col expected actual
#>   1  -- a number      —
#> [1] 252

ef_if.na(NA,3)
#> [1] 3

About

Utility functions used by Exploring Finance

License:GNU General Public License v3.0


Languages

Language:R 100.0%