Can anybody tell me what's going on here? Everything I've read says to use "\N" for both STRINGs and non-STRINGs, but Hive is treating them differently. WTF?
WHAT IS THIS?
This is a step-by-step tutorial for getting started with R, a powerful programming language for data analysis and visualization. It is aimed at near complete beginners. You'll basically want to be comfortable with spreadsheets and with using your computer's command line.
I slapped this together quickly, so expect some weirdness. Feel free to email me with comments or questions at jpvelez | at | gmail.com
I learned the following stuff using the UCLA Statistic's Department great R tutorials, so check those out:
|;; a naive implementation of the R intro demo from Chicago Open Data Hack Night|
|;; using clojure and incanter|
|;; Data and explanation here: http://gathers.us/events/open-gov-hack-night-organized-by-open-city-ebf93|
|;; * Download incanter-latest (1.2 right now)|
|;; * run `script/repl`|
|;; * copy in code|
|(use '(incanter core io stats charts))|
|dumont:~ ryanbriones$ gem install morning-pages|
|Fetching: trollop-1.16.2.gem (100%)|
|Fetching: morning-pages-0.2.1.gem (100%)|
|Successfully installed trollop-1.16.2|
|Successfully installed morning-pages-0.2.1|
|2 gems installed|
|dumont:~ ryanbriones$ morning-pages help|
|sh: /Users/ryanbriones/words/2012-07-18: No such file or directory|
|/Users/ryanbriones/.rvm/gems/ruby-1.9.2-p180/gems/morning-pages-0.2.1/lib/morning-pages.rb:15:in `read': No such file or directory - /Users/ryanbriones/words/2012-07-18 (Errno::ENOENT)|
|from /Users/ryanbriones/.rvm/gems/ruby-1.9.2-p180/gems/morning-pages-0.2.1/lib/morning-pages.rb:15:in `stats_for_today'|