全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
14920 2
2015-10-24
attempt to use zero-length variable name


R version 3.2.2 (2015-08-14) -- "Fire Safety"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Workspace loaded from ~/.RData]

> ```{r}
Error: attempt to use zero-length variable name
> library(abind)
> library(arm)
载入需要的程辑包:MASS
载入需要的程辑包:Matrix
载入需要的程辑包:lme4

arm (Version 1.8-6, built: 2015-7-7)

Working directory is C:/Users/17486/Documents

> library(caret)
载入需要的程辑包:lattice
载入需要的程辑包:ggplot2
>
> ```
Error: attempt to use zero-length variable name
> ## Loading required package: lattice
> ## Loading required package: ggplot2
>
> ```{r}
Error: attempt to use zero-length variable name
> library(kernlab)
> library(klaR)
> library(rattle)
载入需要的程辑包:RGtk2
Rattle: A free graphical interface for data mining with R.
XXXX 3.5.0 Copyright (c) 2006-2015 Togaware Pty Ltd.
键入'rattle()'去轻摇、晃动、翻滚你的数据。
> ```
Error: attempt to use zero-length variable name
> ## Rattle: A free graphical interface for data mining with R.
> ## Version 3.3.0 Copyright (c) 2006-2014 Togaware Pty Ltd.
> ## Type 'rattle()' to shake, rattle, and roll your data.
>
> ```{r}
Error: attempt to use zero-length variable name
> library(randomForest)
randomForest 4.6-12
Type rfNews() to see new features/changes/bug fixes.
> ```
Error: attempt to use zero-length variable name
> ## randomForest 4.6-10
> ## Type rfNews() to see new features/changes/bug fixes.
> ```{r}
Error: attempt to use zero-length variable name
> library(rpart)
> ```
Error: attempt to use zero-length variable name
>
> Seed for pseudo-random generator
Error: unexpected 'for' in "Seed for"
> ```{r}
Error: attempt to use zero-length variable name
> set.seed(12345)
> ```
Error: attempt to use zero-length variable name
> ```{r}
Error: attempt to use zero-length variable name
> library(abind)
> library(arm)
> library(caret)
>
> ```
Error: attempt to use zero-length variable name
> ## Loading required package: lattice
> ## Loading required package: ggplot2
>
> ```{r}
Error: attempt to use zero-length variable name
> library(kernlab)
> library(klaR)
> library(rattle)
> ```
Error: attempt to use zero-length variable name
> ## Rattle: A free graphical interface for data mining with R.
> ## Version 3.3.0 Copyright (c) 2006-2014 Togaware Pty Ltd.
> ## Type 'rattle()' to shake, rattle, and roll your data.
>
> ```{r}
Error: attempt to use zero-length variable name
> library(randomForest)
> ```
Error: attempt to use zero-length variable name
> ## randomForest 4.6-10
> ## Type rfNews() to see new features/changes/bug fixes.
> ```{r}
Error: attempt to use zero-length variable name
> library(rpart)
> ```
Error: attempt to use zero-length variable name
>
> Seed for pseudo-random generator
Error: unexpected 'for' in "Seed for"
> ```{r}
Error: attempt to use zero-length variable name
> set.seed(12345)
> Seed for pseudo-random generator
Error: unexpected 'for' in "Seed for"
> ```{r}
Error: attempt to use zero-length variable name
> set.seed(12345)
> ```
Error: attempt to use zero-length variable name
> ```{r}
Error: attempt to use zero-length variable name
> urlTrain <- "http://d396qusza40orc.cloudfront.net/predmachlearn/pml-training.csv"
> urlTest <- "http://d396qusza40orc.cloudfront.net/predmachlearn/pml-testing.csv"
> ```
Error: attempt to use zero-length variable name


这个不知道啥问题,请教高手,感谢!

二维码

扫码加我 拉你入群

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

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

全部回复
2015-10-25 09:09:14
木有人回复吗,请教了!
二维码

扫码加我 拉你入群

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

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

2015-10-26 17:58:36
不要直接选中代码然后ctrl+R,因为这些代码是钩子(chunk)函数。
你可以在RStudio编辑窗口的右上角找到那个chunk的按钮,打开之后就能找到你要的了,或者直接ctrl+Alt+R,以上。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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