Displaying 1 result from an estimated 1 matches for "t1stvisit".
Did you mean:
instvisit
2009 Nov 23
2
non-intuitive behaviour after type conversion
Deal list,
I have a data frame (birth) with mixed variables (numeric and
alphanumeric). One variable "t1stvisit" was originally coded as
numeric with values 1,2, and 3. After attaching the data frame, this
is what I see when I use str(t1stvisit)
$ t1stvisit: int 1 1 1 1 1 1 1 1 2 2 ...
This is as expected.
I then convert t1stvisit to a factor and to avoid creating a second
copy of this variab...