Nothing
expandrows <- function(data, times) {
df <- bt_as_data_frame(data)
if (length(times) == 0L) {
stop("`times` must not be empty.", call. = FALSE)
}
times <- bt_recycle_flag(times, nrow(df), "times")
if (anyNA(times)) {
stop("`times` must not contain missing values.", call. = FALSE)
}
if (any(times < 0)) {
stop("`times` must be non-negative.", call. = FALSE)
}
if (any(abs(times - round(times)) > .Machine$double.eps^0.5)) {
stop("`times` must contain whole numbers.", call. = FALSE)
}
idx <- rep.int(seq_len(nrow(df)), as.integer(times))
bt_as_data_table(df[idx, , drop = FALSE])
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.