Skip to Content
Bad Data 技術手冊
book

Bad Data 技術手冊

by Q. Ethan McCallum
September 2013
Intermediate to advanced
264 pages
5h
Chinese
GoTop Information, Inc.
Content preview from Bad Data 技術手冊
40
|
第三章:資料是要給人類使用,而非給機器使用
> as.numeric(year13boys)
[1] 34 37 33
> as.numeric(year13boys) < 3
[1] FALSE FALSE FALSE
> all(as.numeric(year13boys) < 3)
[1] FALSE
上方的程式碼告訴電腦要去執行本來我們要自己用眼睛做的任務。
讀取跨數個檔案的資料
我們要解決的第二個問題,就是有超過 490 張電子試算表要被確認。
若所有學校的電子試算表都是使用完全一樣的格式,那麼這個程序就很簡單,只要對每
個學校重複執行這些動作即可。不幸的是,事情並沒有那麼簡單,因為有些學校使用不
同的電子試算表格式。舉例來說,Alpha School 只有男學生的結果(沒有任何的列是在
統計女學生的數量),所以讓我們感興趣的資料便是在電子試算表中的第 810 以及 12
列(見圖 3-7)。
3-7  2010 Alpha School 完成 NCEA 的學生數量
另一個範例是 Delta Education Centre,只有
一列
男學生的資料,而該列又沒有值(見圖
3-8)。
41
答案:撰寫程式
|
41
3-8  2010 Delta Education Centre
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

RxJava反应式编程

RxJava反应式编程

Tomasz Nurkiewicz, Ben Christensen
高效能PYTHON程式設計

高效能PYTHON程式設計

Micha Gorelick, Ian Ozsvald
Kubernetes编程

Kubernetes编程

Michael Hausenblas, Stefan Schimanski

Publisher Resources

ISBN: 9789862768952