R中「 =」和「 <-」賦值運算符有什麼區別?

問題:

What are the differences between the assignment operators = and <- in R? R中賦值運算符=<-之間有什麼區別? this

I know that operators are slightly different, as this example shows 我知道運算符略有不一樣,如本例所示 spa

x <- y <- 5
x = y = 5
x = y <- 5
x <- y = 5
# Error in (x <- y) = 5 : could not find function "<-<-"

But is this the only difference? 但這是惟一的區別嗎? .net


解決方案:

參考一: https://stackoom.com/question/7J7s/R中-和-lt-賦值運算符有什麼區別
參考二: https://oldbug.net/q/7J7s/What-are-the-differences-between-and-assignment-operators-in-R
相關文章
相關標籤/搜索