我正在尝试将我的数据框过滤到该财年(10-01-2018 / 09-31-2019)内的日期。
我以为这会更简单,但我一直收到一个错误。
Error in charToDate(x) : character string is not in a standard unambiguous format
这是我正在尝试的:
数据集:
toStata <- structure(list(`Advance Identifier` = c("A00010001", "A00010001", "A00010001", "A00010001", "A00010001"), `Date Due` = structure(c(1312934400, 1317772800, 1325721600, 1333584000, 1341446400), class = c("POSIXct", "POSIXt"), tzone = "UTC"), Disbursement = c(85740440.38, 0, 0, 0, 0), `Principal Due` = c(0, 0, 0, 0, 0), `Interest Due` = c(0, 425817.56, 699557.43, 691953.54, 691953.54), `Capitalized Interest Due` = c(0, 0, 0, 0, 0), `Repayment Timing` = c("Beginning", "Beginning", "Beginning", "Beginning", "Beginning"), `Disbursement Timing` = c("Beginning", "Beginning", "Beginning", "Beginning", "Beginning"), `Capitalized Interest` = c(0, 0, 0, 0, 0), Payment = c(0, 425817.56, 699557.43, 691953.54, 691953.54), `Cash Grant Amount` = c(0, 0, 0, 0, 0), `Cash Grant Prepayment Effect Principal` = c(0, 0, 0, 0, 0), `Cash Grant Prepayment Effect Interest` = c(0, 0, 0, 0, 0), `Cash Grant Prepayment Effect Capitalized Interest` = c(0, 0, 0, 0, 0), `Interest Rate` = c(0.03237, 0.03237, 0.03237, 0.03237, 0.03237), `Payment Frequency` = c("Quarterly", "Quarterly", "Quarterly", "Quarterly", "Quarterly"), `Modification Principal` = c(NA_real_,