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.
我遇到了有线情况。添加新代码后代码无法编织出来。
function_name <- function (...) { output <- if (output_format == "list") { evolved.ts } else if (output_format == "tsibble") { as.tsibble(evolved.ts) } return(output) }
您可以阅读以下参数args <- list(...):
args <- list(...)
function_name <- function (...) { args <- list(...) # Code output <- if (args$output_format == "list") { evolved.ts } else if (output_format == "tsibble") { as.tsibble(evolved.ts) } return(output) }