全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
10306 2
2017-06-12
请问这个warning message是什么意思?
attributes are not identical across measure variables; they will be dropped

而且a没有这个warning,跑b的时候却有
library(tidyverse)
a=gather(data,key=newweekday,value=a,starts_with("aw"))
b=gather(data,key=newmonth,value=b,starts_with("bw"))
data是这个样子
微信截图_20170612180941.png
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2017-6-12 22:51:36
你的数据读入有问题吧,相信带括号的数字是负数么?
在excel里把数据处理成一样的,再进行相关的处理吧。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2017-6-13 01:51:24
if the original data is not in xls or any microsoft excel format, please do NOT use Excel to open them before you read them in from R. I have several times openning csv file with Excel before I open the csv in R, it creates some default format and R does not handle it very well. you could try to read in data set using read.delim instead of read.csv or read.table

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群