Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDuration in summary of data.frame #472
Comments
|
Strangely enough I cannot reproduce it with your code, but it seems to be the same issues as #465. Should be fixed once I pulled that PR. |
I want to summary a data-frame with summary(videos), where videos$DURATION is the video-length in seconds.
I get the following error if the data.frame exceeds a non-determinable size:
Error in sprintf("%ds (~%s %ss)", x, x2, unit, "s)") : invalid format '%d'; use format %f, %e, %g or %a for numeric objectsThe following Code reproduces the error, if you play around with the sample size:
set.seed(1)
videos <- data.frame(
DURATION = lubridate::duration(
sample(0:12345,10) # sample 10 different durations (e.g. 1000 produces an error)
)
)
summary(videos)