Getting Started with R - getting out of the command line and into an IDE - Thinking about tutorials and utopian by ecoinstant

View this thread on steempeak.com
· @ecoinstant ·
$0.75
Getting Started with R - getting out of the command line and into an IDE - Thinking about tutorials and utopian
So since I didn't get a post out yesterday I wanted to start early today.  I continue to move inexorably through the datacamp R tutorials, and am approaching the day when I may even be able to do something interesting with data!  I am also hanging around the utopian discord, looking for any and all chances to learn something, and yesterday had such a chance!  There was a half hour contest in which I had two entries accepted, and I was even encouraged to work towards producing some R tutorials on utopian!  

This seems like a wonderful intermediate goal for me with R, as I learn I can turn certain aspects into freely available tutorials, compounding my learning and enhancing the information for the whole community!



<center>![arrr part 3 lead image.jpg](https://cdn.steemitimages.com/DQmeFkFXfWFucavpHiWu4W4F4rh74SVyp2nFD6Gwv5bTPVs/arrr%20part%203%20lead%20image.jpg)</center><center><sub></sub></center>

Last night I even got a little burnt out on the data camp curriculum, but I came to the realization that a lot of the 'basic programming' concepts are very similar no matter what language you are working with.  This is the first time I have had that feeling, so I must be making personal progress, right?  

What I mean is that after doing comparisons, if statements, loops and functions in R, I realized how similar it is to doing the very same things in Javascript, and Python, and in Visual Basic before that.  

<center>![source v console.jpg](https://cdn.steemitimages.com/DQmbgM1FR7SDpcVGtSDuPAAna6gA3V1TPUNi5HsPbnSMPVE/source%20v%20console.jpg)</center><center><sub>First IDE feature - a text editor!</sub></center>

You may have noticed in my previous articles that I was typing directly into the raw R console.  This means that all of the commands I type were executed, but none of them were saved.  Inside this development environment RStudio, there is a text editor where I can now write and save R code as scripts, and choose which pieces to run in the console.  

Above, you can see that I am beginning a script dealing with the Los Angeles County zip code data.  Saving my script means never having to type read.csv command to import the file again.  In this way, scripts begin to save us time by automating repeated tasks.

<center>![data head.jpg](https://cdn.steemitimages.com/DQmXWgPu51MqGrhHgDcazAMwn5Z36QKPzfUN9iDhsSnB6e5/data%20head.jpg)</center><center><sub></sub></center>

The great thing about this type of learning is that when the online 'class room' gets too boring, I can wander off on my own and try things out.  Looking at the data I have available above, I try to think of what I could plot along with median age.  The only one that makes sense to me is household size.  Does household size get larger or smaller with an increase in median age?

Let's plot it out with the basic plot function!

<center>![plot medage v hsize.jpg](https://cdn.steemitimages.com/DQmYen9VtTvWyUng73NoKxeQka9aBJmUJgUZa394VqFuKG7/plot%20medage%20v%20hsize.jpg)</center><center><sub>Pointy red arrow all me, showing my hand-made 'trend of best fit' line</sub></center>

As you can see, above a certain age it does appear (at least in Los Angeles county) that an older average population is correlated to a lower average household size.  I suspect this makes intuitive sense since as we grow older our children move out and on their own, and if we have the money to live in LA county we probably aren't getting any roommates XD.  (Actually I am not sure if roommates count as part of household size since this 'household' definition may be the one used on taxes...)

Finally a graph that has some meaning!  It's all up from here (or down in this case), but definitely we are heading in a direction!

<center>![Have a great day!.jpg](https://cdn.steemitimages.com/DQmNtHJJ85KxpordqGs9VDQ1nNZSqVqdt5h9SVw4yK2qtAo/Have%20a%20great%20day!.jpg)</center><center><sub>Have a great day!</sub></center>

Thanks for putting up with my ramblings, I have some ideas about putting this R stuff to good use and will continue working at it.  I also have coffeesource.net mounted locally, so I can, for example, make you a nice table of contents of my previous R articles:

<sub>[Getting Started with R - Baby's first steps at modern computer aided statistical analysis - How to maintain excitement while learning online](/analysis/@ecoinstant/getting-started-with-r-babies-first-steps-at-modern-computer-aided-statistical-analysis-how-to-maintain-excitement-while)
[Getting Started with R - Things are heating up with government data! - defining variables from dataframes](/analysis/@ecoinstant/getting-started-with-r-things-are-heating-up-with-government-data-defining-variables-from-dataframes)
</sub>

<center>![](https://cdn.steemitimages.com/DQmbYqT5HBQdAo7GK1gDdENok6WmkiCa76iBepbkwuGT8jM/image.png)</center><center><sub></sub></center>

I am still looking for support to host this baby, I have some leads but as has happened before in my life I sometimes confuse people more than I clarify.  I have a ton more features to build out on this already useful app, and will be working to put it up as an official utopian project very soon.  

<center>https://steemitimages.com/0x0/https://media.giphy.com/media/ZxnTNEdV8tyIdcwfvl/giphy.gif</center><center><sub>Oh, and did I mention this totally cool @liberty-minded dude made me this thingie!</sub></center>

Love to all!
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 6 others
properties (23)
post_id62,447,843
authorecoinstant
permlinkgetting-started-with-r-getting-out-of-the-command-line-and-into-an-ide-thinking-about-tutorials-and-utopian
categoryanalysis
json_metadata{"tags":["analysis","data","learning","statistics","progress"],"users":["liberty-minded"],"links":["\/analysis\/@ecoinstant\/getting-started-with-r-babies-first-steps-at-modern-computer-aided-statistical-analysis-how-to-maintain-excitement-while","\/analysis\/@ecoinstant\/getting-started-with-r-things-are-heating-up-with-government-data-defining-variables-from-dataframes"],"app":"steemit\/0.1","format":"markdown","image":["https:\/\/cdn.steemitimages.com\/DQmeFkFXfWFucavpHiWu4W4F4rh74SVyp2nFD6Gwv5bTPVs\/arrr%20part%203%20lead%20image.jpg"]}
created2018-09-14 15:56:39
last_update2018-09-14 15:56:39
depth0
children10
net_rshares669,185,447,093
last_payout2018-09-21 15:56:39
cashout_time1969-12-31 23:59:59
total_payout_value0.633 SBD
curator_payout_value0.117 SBD
pending_payout_value0.000 SBD
promoted0.007 SBD
body_length5,384
author_reputation76,834,373,699,494
root_title"Getting Started with R - getting out of the command line and into an IDE - Thinking about tutorials and utopian"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (70)
@revisesociology ·
I've been meaning to look at R for a while... although I've settled on getting my head around Tableau first of all.... 

I love data vizes. 

Posted using [Partiko Android](https://steemit.com/@partiko-android)
properties (22)
post_id62,461,890
authorrevisesociology
permlinkrevisesociology-re-ecoinstant-getting-started-with-r-getting-out-of-the-command-line-and-into-an-ide-thinking-about-tutorials-and-utopian-20180914t193742813z
categoryanalysis
json_metadata{"app":"partiko"}
created2018-09-14 19:37:42
last_update2018-09-14 19:37:42
depth1
children6
net_rshares0
last_payout2018-09-21 19:37:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length210
author_reputation219,336,602,045,061
root_title"Getting Started with R - getting out of the command line and into an IDE - Thinking about tutorials and utopian"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@ecoinstant ·
$0.04
Alright!  Yeah I have used power bi and a tiny little bit of tableau, data viz is powerful stuff!

The reason we avoided tableau (super powerful) at my last job is that all the clients needed an account to see the output.  Consider carefully who you will want to see your work, because tableau is going to want money from them too.
👍  ,
properties (23)
post_id62,515,132
authorecoinstant
permlinkre-revisesociology-revisesociology-re-ecoinstant-getting-started-with-r-getting-out-of-the-command-line-and-into-an-ide-thinking-about-tutorials-and-utopian-20180915t132442795z
categoryanalysis
json_metadata{"tags":["analysis"],"app":"steemit\/0.1"}
created2018-09-15 13:24:15
last_update2018-09-15 13:24:15
depth2
children5
net_rshares32,104,799,396
last_payout2018-09-22 13:24:15
cashout_time1969-12-31 23:59:59
total_payout_value0.033 SBD
curator_payout_value0.003 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length331
author_reputation76,834,373,699,494
root_title"Getting Started with R - getting out of the command line and into an IDE - Thinking about tutorials and utopian"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@revisesociology ·
Oh ok that's interesting to know about Tableau. I thought you could just save the analysis in different formats

Posted using [Partiko Android](https://steemit.com/@partiko-android)
properties (22)
post_id62,515,968
authorrevisesociology
permlinkrevisesociology-re-ecoinstant-re-revisesociology-revisesociology-re-ecoinstant-getting-started-with-r-getting-out-of-the-command-line-and-into-an-ide-thinking-about-tutorials-and-utopian-20180915t133624252z
categoryanalysis
json_metadata{"app":"partiko"}
created2018-09-15 13:36:24
last_update2018-09-15 13:36:24
depth3
children4
net_rshares0
last_payout2018-09-22 13:36:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length181
author_reputation219,336,602,045,061
root_title"Getting Started with R - getting out of the command line and into an IDE - Thinking about tutorials and utopian"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@drotto ·
<p>This post has received a 3.13 % upvote from @drotto thanks to: @sbi-booster.</p>
properties (22)
post_id62,462,239
authordrotto
permlinkre-ecoinstant-getting-started-with-r-getting-out-of-the-command-line-and-into-an-ide-thinking-about-tutorials-and-utopian-20180914t194400527z
categoryanalysis
json_metadata{"tags":["analysis"],"app":"drotto\/0.0.5pre2"}
created2018-09-14 19:44:00
last_update2018-09-14 19:44:00
depth1
children0
net_rshares0
last_payout2018-09-21 19:44:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length84
author_reputation424,402,347,817
root_title"Getting Started with R - getting out of the command line and into an IDE - Thinking about tutorials and utopian"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steemitboard ·
Congratulations @ecoinstant! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png)](http://steemitboard.com/@ecoinstant) Award for the number of upvotes received

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



> Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
post_id62,466,945
authorsteemitboard
permlinksteemitboard-notify-ecoinstant-20180914t211941000z
categoryanalysis
json_metadata{"image":["https:\/\/steemitboard.com\/img\/notify.png"]}
created2018-09-14 21:19:39
last_update2018-09-14 21:19:39
depth1
children0
net_rshares0
last_payout2018-09-21 21:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length687
author_reputation38,705,954,145,809
root_title"Getting Started with R - getting out of the command line and into an IDE - Thinking about tutorials and utopian"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-ua ·
#### Hi @ecoinstant!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your **UA** account score is currently 4.173 which ranks you at **#2801** across all Steem accounts.
Your rank has dropped 6 places in the last three days (old rank 2795).

In our last Algorithmic Curation Round, consisting of 441 contributions, your post is ranked at **#142**.
##### Evaluation of your UA score:

* Some people are already following you, keep going!
* You have already convinced some users to vote for your post, keep trying!
* Try to improve on your user engagement! The more interesting interaction in the comments of your post, the better!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
post_id62,772,103
authorsteem-ua
permlinkre-getting-started-with-r-getting-out-of-the-command-line-and-into-an-ide-thinking-about-tutorials-and-utopian-20180919t061713z
categoryanalysis
json_metadata{"app":"beem\/0.19.54"}
created2018-09-19 06:17:15
last_update2018-09-19 06:17:15
depth1
children0
net_rshares0
last_payout2018-09-26 06:17:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length768
author_reputation23,203,609,903,979
root_title"Getting Started with R - getting out of the command line and into an IDE - Thinking about tutorials and utopian"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000