Coercing a POSIXct object to Date object
问题 Reproducible code: # Loading quantmod library(quantmod) # Please, put in R this structure a <- structure(c(2.4, 2.35, 2.44, 2.44, 2.31, 2.32, 2.41, 2.43, 2.46, 2.42, 2.45, 2.39, 2.3, 2.41, 2.33, 2.37, 2.38, 2.4, 2.275, 2.235, -0.0300000000000002, -0.0499999999999998, 0.0899999999999999, 0, -0.13, 0.00999999999999979, 0.0900000000000003, 0.02, 0.0299999999999998, -0.04, 0.0300000000000002, -0.0600000000000001, -0.0900000000000003, 0.11, -0.0800000000000001, 0.04, 0.00999999999999979, 0.02, -0