[R-SIG-Finance] from tibble to journal
Arnaud Gaboury
@rn@ud@g@boury @end|ng |rom gm@||@com
Fri Mar 7 16:00:52 CET 2025
I have one tibble 'journal_tb' with this structure:
gabx using magnolia [R] str(journal_tb)
tibble [72 × 4] (S3: tbl_df/tbl/data.frame)
$ timestamp : POSIXct[1:72], format: "2024-12-16 18:00:00" "2024-12-16
18:00:00" "2024-12-16 18:00:00" "2024-12-16 18:00:00" ...
$ instrument: chr [1:72] "FTMUSDT" "SUIUSDT" "ETHUSDT" "ENAUSDT" ...
$ amount : num [1:72] 284270 80024 91.9 207836 9.34 ...
$ price : num [1:72] 1.38 4.73 4038 1.19 107012 ...
When transforming to a PMwR journal:
gabx using magnolia [R] my_journal <- as.journal(my_journal_tb)
I have this error: Error in names[[i]] : subscript out of bounds
I have double checked my columns but everything looks fine.
How can I solve this out of bounds error?
Thnak you for help
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20250307/610bc538/attachment.sig>
More information about the R-SIG-Finance
mailing list