Skip to content

how to change data type in data frame?

2 messages · Liaw, Andy, Auston Wei

#
Here's one way:
dimnames=dimnames(trash)))
age typeI typeII
1   1     0      1
2   2     0      0
3   3     1      1
4   4     0      1
5   5     1      0

HTH,
Andy
#
Liaw, Andy <andy_liaw <at> merck.com> writes:
Thank you very much, Andy. It works. Yet another question, what if I want to 
keep age as a factor? Is it possible?

thank you,
Auston