Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure correct data type of NA timestamps
Up until now, `get.data.cut.to.same.date(data.sources = c("issues", "mails", "commits"))` failed if some of the first data source was empty, but not if the second one was empty. The reason was that `NA` values introduced by empty data sources at the beginning of the data frame turned the data frame into a data frame of numeric objects instead of POSIXct objects. If there were already POSIXct objects in the data frame, this did not happen. To prevent the timestamps to be interpreted as numeric values, make sure that the `NA` values are always POSIXct objects. This fixes se-sic#269. Signed-off-by: Thomas Bock <[email protected]>
- Loading branch information