Why does the rollapply function in R returns a matrix when applied to a vector?

前端 未结 0 847
深忆病人
深忆病人 2021-01-13 04:27

I have a tibble of daily financial data. Similar to the below:

head(df)

tibble [2,871 x 2] (S3: tbl_df/tbl/data.frame)
Price | Volatility
15.4    17.5
14.7           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题