小编ber*_*iin的帖子

r 中的 reshape::melt 不断出现警告消息

我不断收到如下警告消息:

as.is should be specified by the caller using true 
Run Code Online (Sandbox Code Playgroud)

代码如下:

difficulty_data <- data_original[,c(-1)] %>% colMeans() %>% t() %>% as.data.frame() %>% t() 
difficulty_data <- reshape::melt(difficulty_data, id.vars=c("id"))  %>% dplyr::select(-X2)
Run Code Online (Sandbox Code Playgroud)

描述 :

我想计算数据帧的colmeans并将它们分成两个不同的列。我删除了“X2”,因为最后我想用 ggplot 绘制它们。(结果与值和值的id相结合)

warnings r reshape dataframe melt

3
推荐指数
1
解决办法
3902
查看次数

标签 统计

dataframe ×1

melt ×1

r ×1

reshape ×1

warnings ×1