从excel中直接读取的数据为list,如下转换为向量
as.vector(unlist(x))
本文介绍了一种将从Excel读取的数据列表转换为向量的方法。通过使用R语言中的as.vector(unlist(x))函数,可以方便地实现这一转换。
从excel中直接读取的数据为list,如下转换为向量
as.vector(unlist(x))
615
3407
2284
2万+