Psymonitor Package on RStudio

I am very new to using R so I apologize if this is a very straightforward question. I just imported a dataset from Excel that contains data on Bitcoin prices (daily price in $) and the corresponding dates. I have a total of 745 observations and 2 variables (Date and ClosingPrice). I tried using the PSY function from the psymonitor package (I'm trying to test for bubbles in Bitcoin) and got the following error in return:

" Error: Can't subset columns that don't exist.
x Locations 3, 4, 5, 6, 7, etc. don't exist.
:information_source: There are only 2 columns. "

I have included a screenshot below (incase it helps).

I have never used this function. Looking at the documentation, PSY() expects a vector as the first argument and you are passing it a data.frame . Try

PSY(BTC{, `Closing Price`], swindow0 = 57, IC = 2)

By the way, having spaces in column names is a pain. I suggest you change the second columns name to something like Closing_Price.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.