merge_rmp_valtx_nonvaltxnoduplicates_blockinfo: merge_rmp_valtx_nonvaltxnoduplicates_blockinfo

Description Usage Arguments Value Examples

View source: R/merge_rmp_valtx_nonvaltxnoduplicates_blockinfo.R

Description

Merges the infos of the rawmempool with the validated and nonvalidated transactions without dupicates and the blockinfo. This means for the whole data.frame which consists out of many block each transaction will only be includes once.

Usage

1
2
merge_rmp_valtx_nonvaltxnoduplicates_blockinfo(blocknr, blockhash, blockinfo,
  writecsv = FALSE)

Arguments

blocknr

vector of blocknumbers for which to generate the merged files.

blockhash

vector of blockhashes corresponding to the blocknr.

blockinfo

data.frame, which contains data of the single blocks to be merged, created by get_blockinfo()

writecsv

logical, should a .csv file be created.

Value

returns a dataframe of the merged info where every transaction is included only once

If writecsv = TRUE it creates a .csv with the following columns:blocknr, validated, time, height, fee, size, blocksize, blockweight, blocktime, difficulty, nr_tx_rmp, nr_tx_vtx, file_creation_time, nr_obs_valtx

Examples

1
2
3
4
5
## Not run: 
merge_rmp_valtx_nonvaltxnoduplicates_blockinfo(blocknr = blocknr,
blockhash = blockhash, writecsv = TRUE)

## End(Not run)

Ziegelsteintom/bcdataprep documentation built on May 16, 2019, 6:54 p.m.