楼主: borghild
10430 2

[问答] 请问这个warning是什么意思 [推广有奖]

  • 0关注
  • 0粉丝

高中生

57%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
76 点
帖子
6
精华
0
在线时间
50 小时
注册时间
2017-6-6
最后登录
2017-9-8

楼主
borghild 发表于 2017-6-12 18:11:27 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
请问这个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
二维码

扫码加我 拉你入群

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

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

关键词:warning 是什么意思 ning Warn ING message warning library across

沙发
jiangbeilu 学生认证  发表于 2017-6-12 22:51:36
你的数据读入有问题吧,相信带括号的数字是负数么?
在excel里把数据处理成一样的,再进行相关的处理吧。
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
borghild + 1 + 1 + 1 观点有启发

总评分: 学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

藤椅
yzharold 发表于 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

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-20 14:33