我有一个包含大量值的数据框。数据框如下
> datedPf
date ticker quantity
96828 2013-01-11 ABT 700
96829 2013-01-11 AMD 9600
96830 2013-01-11 AMG 600
96831 2013-01-11 AGCO 800
96832 2013-01-11 A 1300
etc...
“ticker”和“quantity”列的类型是factor
. 我分别使用class(datedPf$ticker)
和发现了这个class(datedPf$quantity)
。但是“日期”列的类型是date
. 我想将该类型更改为factor
. 我怎样才能改变这个?