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.
それを試してみてください:
"hello" > 0
使用してみas.numeric("hello")ましたが、元に戻りましたNA。何を与える?
as.numeric("hello")
NA
0に強要されるからです"0"。参照help(">"):
0
"0"
help(">")
If the two arguments are atomic vectors of different types, one is coerced to the type of the other, the (decreasing) order of precedence being character, complex, numeric, integer, logical and raw.