Giter Club home page Giter Club logo

dsc2014tutorial's People

Contributors

c3h3 avatar chihchengliang avatar dboyliao avatar eit avatar johnsonhsieh avatar kuiming avatar ntuaha avatar readata avatar sk413025 avatar wush-bridgewell avatar wush978 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dsc2014tutorial's Issues

tar: Failed to set default locale

Hi,

A simple question. I run the script from https://github.com/TaiwanRUserGroup/DSC2014Tutorial on my Mac OS X.
But I get many messages like this "tar: Failed to set default locale"
And also the warning:
"Warning messages:
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'whisker'
2: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'ggvis'
3: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'e1071'
4: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'caret'
5: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'randomForest'"

Is this OK or I need to do something else to make sure "DSC2014Tutorial" is fine on my Mac?

Thank you

reshape package 沒包到

reshape2 裡面的dcast 在windows系統下沒辦法用中文參數,建議改用reshape裡面的cast (Data Analysis)

DataAnalysis 的第六頁code噴掉

Data Appearance

dat1 <- readRDS(DA_file("estate_linux.rds"))
Error: could not find function "DA_file"
nrow(dat1)
Error: object 'dat1' not found
# random sampling
head(dat1[sample(1:nrow(dat1),6),])
Error: object 'dat1' not found

建議在一開始的Markdown中新增 R更新的方法

windows

參考資料
在R console鍵入

install.packages("installr"); require(installr) 
updateR()

Ubuntu

參考資料

移除舊版的R

在ubuntu指令列中鍵入

sudo apt-get remove r-base-core

手動更新sources.list

sudo gedit /etc/apt/sources.list

增加下列文字

deb http://cran.rstudio.com/bin/linux/ubuntu trusty/

新增Public Keys

gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -

安裝新版R

sudo apt-get update
sudo apt-get install r-base

做完直接開啟R檢查版本即可

錯誤: 沒有這個函數 "slides"

> slides("Basic")
錯誤: 沒有這個函數 "slides"
> slides("ETL")
錯誤: 沒有這個函數 "slides"
> slides("Visualization2")­
錯誤: 沒有這個函數 "slides"
> slides("Visualization3")­
錯誤: 沒有這個函數 "slides"

缺套件 sqldf

as title
(Visualization/slide2/lecture_ggplot2/index.html#36)

library dependency

I got this message:
ERROR: dependencies ‘wordcloud’, ‘gridExtra’ are not available for package ‘DSC2014Tutorial’
After manually install these two packages, I could install ‘DSC2014Tutorial’ successfully.

安裝package遇到問題

Ubuntu 14.04
R console :

install.packages('DSC2014Tutorial', repo = c('http://taiwanrusergroup.github.io/R', "http://cran.csie.ntu.edu.tw"), type = 'source')

error message:

Warning in install.packages :
  unable to resolve 'cran.rstudio.com'
Warning in install.packages :
  unable to resolve 'cran.rstudio.com'
Warning in install.packages :
  unable to access index for repository http://cran.rstudio.com/src/contrib
Installing package into ‘/home/hsiang/R/x86_64-pc-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to resolve 'taiwanrusergroup.github.io'
Warning in install.packages :
  unable to resolve 'taiwanrusergroup.github.io'
Warning in install.packages :
  unable to access index for repository http://taiwanrusergroup.github.io/R/src/contrib
Warning in install.packages :
  unable to resolve 'cran.csie.ntu.edu.tw'
Warning in install.packages :
  package ‘DSC2014Tutorial’ is not available (for R version 3.1.2)

sqldf package 沒包到

ggplot slides page 36

> options(gsubfn.engine='R'); library(sqldf)
Error in library(sqldf) : there is no package called ‘sqldf’
> tmp1 <- sqldf('select Species, Fat, count(*) as Count from siris group by Species, Fat')
Error: could not find function "sqldf"
> tmp2 <- sqldf('select Species, sum(Count) as cnt_by_species from tt group by Species')
Error: could not find function "sqldf"
> sqldf('select tmp1.Species, Fat, Count, (Count*1.0 / cnt_by_species) as Pct 
+        from tmp1 join tmp2 on tmp1.Species = tmp2.Species') -> siris_ag
Error: could not find function "sqldf"
> # result not shown to save space

Split file path according to locale

Provide utf-8 encoded file when the locale is utf-8.

Provide big-5 encoded file when the locale is big-5.

Ttop if the locale is not one of them.

ERROR: dependency ‘rpart.plot’ is not available for package ‘DSC2014Tutorial’

> install.packages('DSC2014Tutorial', repo = 'http://taiwanrusergroup.github.io/R', type = 'source')
Installing package into ‘/home/chihchengliang/R/x86_64-pc-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
  dependency ‘rpart.plot’ is not available
嘗試 URL 'http://taiwanrusergroup.github.io/R/src/contrib/DSC2014Tutorial_0.3.2.tar.gz'
Content type 'application/octet-stream' length 37991507 bytes (36.2 Mb)
開啟了 URL
==================================================
downloaded 36.2 Mb

ERROR: dependency ‘rpart.plot’ is not available for package ‘DSC2014Tutorial’
* removing ‘/home/chihchengliang/R/x86_64-pc-linux-gnu-library/3.1/DSC2014Tutorial’
Warning in install.packages :
  installation of package ‘DSC2014Tutorial’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmphFpKLB/downloaded_packages’
> 

data.table package 沒包到

ggplot page 36

> library(data.table)
Error in library(data.table) : there is no package called ‘data.table’
> siris_ag <- as.data.table(siris)
Error: could not find function "as.data.table"
> siris_ag <- siris_ag[,list(Count=.N), by='Species,Fat'][
+     ,Pct:=Count/sum(Count), by='Species']
Error in `[.data.frame`(siris_ag, , list(Count = .N), by = "Species,Fat") : 
  unused argument (by = "Species,Fat")
> # result not shown to save space

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.