请问reshape2包中melt()函数的作用是什么?看帮助文档没看懂!
melt {reshape2} R Documentation
Convert an object into a molten data frame.
Description
This the generic melt function. See the following functions for the details about different data structures:
Usage
melt(data, ..., na.rm = FALSE, value.name = "value")
Arguments
data
Data set to melt
na.rm
Should NA values be removed from the data set? This will convert explicit missings to implicit missings.
...
further arguments passed to or from other methods.
value.name
name of variable used to store values
Details
melt.data.frame for data.frames
melt.array for arrays, matrices and tables
melt.list for lists
See Also
cast


雷达卡



我自己写了一个,但是同样的数据量,自己的代码跑了2小时,melt嗖的一下。。。心里太不平衡了,想学习一下~~~

京公网安备 11010802022788号







