我在下一行中得到了这个奇怪的错误:
updat = data.frame(Ranking=RankingRow[[1, "#"]], Ticker=RankingRow[[1, "Ticker"]], Name=RankingRow[[1, "Name"]],Updated=RankingRow[[1, "Updated"]], Percentage=RankingRow[[1, "Target Weight"]],ClosePrice=RankingRow[[1, "Close Price"]], buyOrSell="Sell",amount=porto[[row, "aantal"]])
错误:
Error in data.frame(Ranking = RankingRow[[1, "#"]], Ticker = RankingRow[[1, :
arguments imply differing number of rows: 1, 0
并且瞥见(RankingRow)给出:
Observations: 1
Variables: 15
$ `#` <int> 11
$ Ticker <chr> "AKAM"
$ Name <chr> "Akamai Technologies Inc Common"
$ Adj.Slope90 <dbl> 165.2
$ Adj.Slope125 <dbl> 135.29
$ Adj.Slope250 <dbl> 0
$ Avg.Slope.125.250 <dbl> 67.645
$ Sector <chr> "Technology"
$ Industry <chr> "IT Services & Consulting"
$ `Max Gap` <dbl> 13.69
$ `Target Weight` <dbl> 5.55
$ `Stock Trend - SMA100` <int> 1
$ ATR <dbl> 1.22
$ Updated <date> 2018-02-01
$ `Close Price` <dbl> 67.56
我见过其他人得到同样的错误,但我似乎没有相同的理由我得到它。 我有人可以指出我可能非常明显的错误,我非常感激。
答案 0 :(得分:1)
在joran的帮助下,我可以找出导致我错误的原因。 我没有[[,因为他说我拼错了一个专栏名称。“