Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ttnsy/currencyconv
Use `currencyConv()` to convert values in data.frame from one currency to another currency in R.
https://github.com/ttnsy/currencyconv
Last synced: 30 days ago
JSON representation
Use `currencyConv()` to convert values in data.frame from one currency to another currency in R.
- Host: GitHub
- URL: https://github.com/ttnsy/currencyconv
- Owner: ttnsy
- License: other
- Created: 2022-04-14T14:28:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-14T14:34:14.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T16:52:33.536Z (3 months ago)
- Language: R
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# currencyConv
Use `currencyConv()` to convert values in data.frame from one currency to another currency.
## Installation
``` r
# install.packages("devtools")
devtools::install_github("ttnsy/currencyConv")
```## Example
```{r example}
library(currencyConv)
## basic example codex <- data.frame(
var1 = c(100,200,300),
var2 = c(200, 99, 350),
source = c("USD","DKK","USD"),
target = c("GBP","GBP","GBP")
)currencyConv(x, "var1") # When source target is not define, it will by default current the sources to GBP
currencyConv(x, "var1", "source")
currencyConv(x, "var1",target_currency = "GBP")```