R语言运行后
刚开始接触这门语言,很多都不懂,运行后成下面这样了,这是什么意思啊,求助高手详细解答。>manager<-c(1,2,3,4,5)>date<-c("10/24/08",...
刚开始接触这门语言,很多都不懂,运行后成下面这样了,这是什么意思啊,求助高手详细解答。
> manager<- c(1,2,3,4,5)
> date<- c("10/24/08","10/28/08","10/1/08","10/12/08","5/1/09")
> country<- c("US","US","UK","UK","UK")
> gender<-c("M","F","F","M","F")
> age<- c(32,45,25,39,99)
> q1<- c(5,3,3,3,2)
> q2<- c(4,5,5,3,2)
> q3<- c(5,2,5,4,1)
> q4<- c(5,5,5,NA,2)
> q5<- c(5,5,2,NA,1)
> leadership<-data.frame(manager,data,country,gender,age,q1,q2,q3,q4,q5, stringsAsFactors = FALSE)
Error in as.data.frame.default(x[[i]], optional = TRUE) :
不能把""function""类别强迫变成数据框。 展开
> manager<- c(1,2,3,4,5)
> date<- c("10/24/08","10/28/08","10/1/08","10/12/08","5/1/09")
> country<- c("US","US","UK","UK","UK")
> gender<-c("M","F","F","M","F")
> age<- c(32,45,25,39,99)
> q1<- c(5,3,3,3,2)
> q2<- c(4,5,5,3,2)
> q3<- c(5,2,5,4,1)
> q4<- c(5,5,5,NA,2)
> q5<- c(5,5,2,NA,1)
> leadership<-data.frame(manager,data,country,gender,age,q1,q2,q3,q4,q5, stringsAsFactors = FALSE)
Error in as.data.frame.default(x[[i]], optional = TRUE) :
不能把""function""类别强迫变成数据框。 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询