a is an array of numbers.
a[3] = "hello"
#Java: Type error
#Python: Sure, why not?
#Rstats: Yes, and I'll turn all the other elements into strings, too
#ProgrammingAsImprovTheater
@peterdrake out of interest: regarding #rstats, is a a list or a vector in this case?
@basepair A vector. R lists behave (in this respect) like Python lists.
CleverLibre Social is an inclusive social instance for open discussion, learning, and community. All cultures welcome. Hate speech and harassment strictly forbidden.
@peterdrake out of interest: regarding #rstats, is a a list or a vector in this case?