ddplyをPOSIXltを含むデータフレームに適用した場合のエラーについて
ddplyをPOSIXltを含むデータフレームに適用すると以下のようなエラーが出ることがある。
Error in attributes(out) <- attributes(col) : 'names' attribute [9] must be the same length as the vector [1]
対処法としては2つ。
- POSIXltをas.characterで文字列に変換する
- POSIXltの代わりにPOSIXctを使う(plyrパッケージ作者のHadley推奨)