Displaying 1 result from an estimated 1 matches for "krivat".
Did you mean:
privat
2019 Jul 19
2
inconsistent behaviour of c(...)
Hello,
A way to see this is with ?class
# OP's code
typeof(c(1,"2")) # "character"
d.f <- data.frame(C=c(1,"2"))
typeof(d.f$C) # "integer"
# And check the objects' classes
class(c(1,"2")) # "character"
class(d.f$C) # "factor"
Hope this helps,
Rui Barradas
?s 08:19 de 19/07/19, Peter Langfelder escreveu: