阅读背景:

重构数据帧,将因子转换为R中的列

来源:互联网 

I have a data frame where one particular column has a set of specific values (let's say, 1, 2, ..., 23). What I would like to do is to convert from this layout to the one, where the frame would have extra 23 (in this case) columns, each one representing one of the factor values. The data in these columns would be booleans indicating whether a particular row had a given factor value... To show a specific example:I have a data frame where one particular column




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: