Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
年と月の形式で指定された日付から月を減算したい。
global_date = "2017-01"
私は次のようにzooライブラリでそれを変換しています:
zoo
as.yearmon(global_date) - 0.1
しかし、それは私に2016年11月を与えます、私はそれを「201612」として欲しいです
Rでどうやってそれを行うことができますか?