I would like to mutate a fiscal month-end date to a dataset in R. In my company the fiscal month-end would be on 21st of that. For example
12/22/2019 to 1/21/2020 will be Jan-2020 1/22/2020 to 2/21/2020 will be Feb-2020 2/22/2020 to 3/21/2020 will be Mar-2020 etc
Dataset
Desired_output
How would I accomplish this in R. The Date column in my data is %m/%d/%Y(1/22/2020)
dput
and show expected output for that.dput(head(df))
. – Ronak Shahdput(x)
ordput(head(x))
in your question avoids this problem. – G. Grothendieck