format_detect: Detect transaction file exchange and format it

format_detectR Documentation

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 class 'data.frame'
format_detect(data, list.prices = NULL, force = FALSE, ...)

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

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).

Value

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

Examples

format_detect(data_shakepay)
format_detect(data_newton)
format_detect(list(data_shakepay, data_newton))

cryptoTax documentation built on March 7, 2023, 7:46 p.m.