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.
なぜこれが機能するのか
print.character = function(x) cat("Use cat instead!", x) print("tre") # Use cat instead! tre
しかし、これはエラーをスローしますか?
"+.character" = function(lhs, rhs) paste0(lhs, " + ", rhs) "tre" + "tri"
"tre" + "tri" のエラー: 二項演算子への数値以外の引数