Learn R Programming

cryptoTax (version 0.0.5)

format_detect: Detect transaction file exchange and format it

Description

Detect the exchange of a given transaction file and format it with the proper function for later ACB processing.

Usage

format_detect(data, ...)

# S3 method for data.frame format_detect(data, list.prices = NULL, force = FALSE, ...)

# S3 method for list format_detect(data, list.prices = NULL, force = FALSE, ...)

Value

A data frame of exchange transactions, formatted for further processing.

Arguments

data

The dataframe

...

Used for other methods.

list.prices

A list.prices object from which to fetch coin prices.

force

Whether to force recreating list.prices even though it already exists (e.g., if you added new coins or new dates).

Examples

Run this code
format_detect(data_shakepay)
format_detect(data_newton)
format_detect(list(data_shakepay, data_newton))

Run the code above in your browser using DataLab