您好,我已经编写了一个代码,可以从Fred获取财务数据。 它应该获取所有数据并将数据放入空矩阵中。
这似乎比我想象的更难。例如:
"number of items to replace is not a multiple of replacement length"
但由于TB3MS比其他两组短,我得到一个错误。
cbind.fill <- function(...){
nm = list(...)
nm = lapply(nm, as.matrix)
n = max(sapply(nm, nrow))
do.call(cbind, lapply(nm, function (x)
rbind(x, matrix(, n-nrow(x), ncol(x)))))
}
我想弄清楚如何解决这个问题? 在for循环中创建一个for循环?
我也试过这个:
diff --git a/Formula/readline.rb b/Formula/readline.rb
index 08d3728..d67e5e4 100644
--- a/Formula/readline.rb
+++ b/Formula/readline.rb
@@ -16,7 +16,7 @@ class Readline < Formula
sha256 "c129333634dd00ab2267ae9c531fca1f5cc50dd519ed3399918289fdfdf2663b" => :lion
end
- keg_only :shadowed_by_osx, <<-EOS.undent
+ keg_only :shadowed_by_macos, <<~EOS
OS X provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.
但是这个在结尾处给出NA我从头开始需要NA然后用数据填充它。