format_ACB: Formats transactions with ACB
Description
Formats transaction data with Adjusted Cost Base (ACB),
along with ACB per share and realized capital gains or losses.
Usage
format_ACB(
data,
as.revenue = c("staking", "interests", "mining"),
sup.loss = TRUE,
cl = NULL,
verbose = TRUE
)Value
A data frame, formatted for the Adjusted Cost Base (ACB).
Arguments
- data
The dataframe
- as.revenue
Which should be treated as revenue, in list of
c("staking", "interests", "mining").
- sup.loss
Logical, whether to take superficial losses into account.
- cl
Number of cores to use for parallel processing.
- verbose
Logical: if FALSE, does not print progress bar or warnings
to console.
Examples
Run this codeall.data <- format_shakepay(data_shakepay)
format_ACB(all.data, verbose = FALSE)
Run the code above in your browser using DataLab