Data Science: Getting started with R and RStudio

 Hello explorers, want to dive into the world of analytics but struggling to take the big step.. Don’t be afraid..its so damn simple; install R and RStudio using the below simple steps and sail the boat of analytics.

Installing R and RStudio in Windows

  1. Download R from http://cran.us.r-project.org/ (click on “Download R for Windows” > “base” > “Download R 3.x.x for Windows”)
  1. Install R. Leave all default settings in the installation options.
  1. Download RStudio from http://rstudio.org/download/desktop and install it. Leave all default settings in the installation options.
  1. Open RStudio.
  1. Go to the “Packages” tab (lower right pane) and click on “Install Packages”. The first time you’ll do this you’ll be prompted to choose a CRAN mirror. R will download all necessary files from the server you select here. Choose the location closest to you from the list available in dropdown.

DS1

6. We want to install the pacakes: psych, lattice, nlme, GPArotation, and nFactors. For example, start typing “Rcmdr” until you see it appear in a list. Select the first option (or finish typing Rcmdr), ensure that “Install dependencies” is checked, and click “Install”.

DS2

Wait while all the parts of the package you chose are installed. Do the same for the other packages.

If you get permission errors while installing packages, close R Studio and reopen it with administrator privileges.

DS3

 

Install R,and RStudio in Mac OS X

  1. Download R from http://cran.us.r-project.org/ (click on “Download R for Mac OS X” > “R-3.x.x.pkg (latest version)”)
  1. Install R.
  1. Download RStudio from http://rstudio.org/download/desktop.

 

  1. Install RStudio by dragging the application icon to your Applications folder.
  1. Open RStudio.

6. Go to the “Packages” tab and click on “Install Packages”. The first time you’ll do this you’ll be prompted to choose a CRAN mirror. R will download all necessary files from the server you select here. Choose the location closest to you from the list available in dropdown.

DS4

We want to install the pacakes: psych, lattice, nlme, GPArotation, and nFactors. For example, start typing “Rcmdr” until you see it appear in a list. Select the first option (or finish typing Rcmdr), ensure that “Install dependencies” is checked, and click “Install”.

DS5

Wait while all the parts of the package you chose are installed. Do the same for the other packages.

Hope you’ll be able to successfully install R and R-Studio and explore the world of data analysis —->DATA SCIENCE 🙂

Cheer up and conquer the world!!

I’ve always been someone driven to excel and make the most out of this wild ride called life, be it sports, teamwork, academics, running, trekking, adventure sports.
So when suggested by Sonu Agarwal I read Tim Ferriss’ book The 4-Hour Workweek

, a new world of possibilities opened up to me.  After discovering his personal productivity tips, I knew the way I worked was never going to be the same.

Over the ensuing 2+ years into the hectic worklife post my MBA, I diligently applied Ferriss’ strategies, from utilizing Parkinson’s Law to following the 80/20 Principle, to eliminating distractions and batching tasks.  And I saw solid results.

But always looking to optimize, I decided to take it a step further.  I decided to see if I could “out-Tim Ferriss” Tim Ferriss.

So I spent some additional time studying the habits of other successful people – reading their books, blogs, etc. to see what was working for them.  And then I started experimenting with a variety of these strategies also to see just how productive I could get.

Some of my experiments failed, but many were resounding successes.  Today, I want to share 12 unconventional productivity strategies that worked well for me.  As I built habits around each of them, my daily efforts became noticeably more efficient.  And I’m confident they can do the same for you.

1.  Meditate
By now I’m sure you’ve heard about all the wonderful health and cognitive benefits meditation offers.  But did you know Stanford University researchers consider it the #1 way to boost willpower?  Regular meditation increases grey matter in the prefrontal cortex, which governs decision-making.  Over time, you’ll greatly improve your ability to avoid distractions and stay focused on the task at hand.  To learn how to start meditating, check out this article.

2.  Optimize Your Morning Ritual
How you spend your first waking hour sets the tone for the rest of your day.  In his program Get the Edge

, peak performance coach Tony Robbins strongly encourages taking at least 15 minutes every morning to get your body and mind in an optimal state.  This can be done through meditation, visualization, physical activity, prayer, reading, practicing gratitude, yoga, journaling, or even taking a walk around the block.

3.  Visualize Your Ideal Day
It is common practice among elite athletes to visualize their performance before game-time.  Golf legend Jack Nicklaus once said, “I never hit a shot, not even in practice, without having a very sharp, in-focus picture of it in my mind.”  You can use the same strategy to increase your productivity.  First, get clear on what you want to accomplish during the day, then visualize yourself going through the different activities swiftly and efficiently.  Once you open your eyes, you’ll be ready to make your own day a masterful performance.

4.  Rest Before You’re Tired
One of the keys to optimal productivity is to stay mentally fresh through the day.  Productivity expert Tony Schwartz, author of the book The Power of Full Engagement

, tells us, “Human beings are designed to pulse rhythmically between spending and renewing energy.  That’s how we operate at our best.”  In other words, a great way to avoid fatigue is to take one or two small breaks every hour.  I personally use the app Time Out which basically blocks me out of my computer for 10 minutes every 50 minutes.  By resting regularly, you’ll keep your energy up and get more done over the course of a day.

5.  Get Active During Your Breaks
What should you do to optimize your 10-minute break?  While it may be tempting to head straight to Facebook, that’s not your best bet.  What I’ve found to be optimal is 5 minutes of physical activity (50 jumping jacks, 20 push-ups and 20 squats) which increases blood flow to the brain, followed by 5 minutes of meditation that calms down the mind and helps you get clarity over what needs to get done next.

6.  Work with Intention
The Internet is a wonderful tool, but it’s also the greatest time-waster in history.  To avoid falling prey to its endless distractions, make sure that whenever you sit down at your computer, you are intentional about your work.  Get crystal clear on what you’re about to do and write it down.  Once that’s done, get straight to work.  Don’t waste 1 minute.  Even checking Facebook or your email once is bound to throw you off track.

7.  Unplug
In a world that’s constantly connected, we forget how taxing this is to our cognitive system.  Try to take 1 day a week to unplug and do a technology detox.  Put your computer aside and seek out nature, spend time with your loved ones, read a book, paint, journal, lay in a hammock, call a friend, volunteer, etc.  If you’re courageous, why not put your phone on airplane mode for a few hours too?  I promise, the next day, you’ll wake up feeling refreshed and refocused.

8.  Optimize Your Work Set-Up
When working on a laptop, it’s easy to get a very bad posture.  The laptop is too low relative to your eye level, which gets you to slouch or look down at an awkward angle.  This is not only bad for your neck and back, but it’s also detrimental to your productivity.  A good posture energizes us, while a bad posture makes us more lethargic.  Consider buying a laptop stand (with an external keyboard and mouse) or setting up a standing desk.

9.  Learn to Speed Read
Reading is an essential part of daily life, in both personal and professional environments.  Learning to speed-read is a great (and easier than you think) way to improve productivity, but it holds one caveat.  It’s really hard to do on a computer screen.  So instead, you can use a neat web application calledSpreeder.  It allows you to paste the text into a box and it then flashes the words across your screen at the speed you choose.  It makes speed-reading on the computer almost effortless and is sure to save you time and energy.

10.  Be Grateful
In his excellent TED Talk The Secret to Happy Work, Shawn Anchor reveals that our brain performs up to 30% better when we’re feeling happy.  A simple way to boost your happiness level is to take a few seconds every hour to think about the things you’re grateful for.  This can be anything, from your health, to your access to food, the internet, your family, your friends, the beautiful weather, etc.  Really feel the gratitude and you’ll be both happier and more productive.

11.  Practice Optimal Breathing
Take a second to notice your breath right now.  It is deep and full, or short and shallow?  If you’re like the majority of people, it’s probably the latter.  When we’re working, it’s easy to get so caught up in what we do that we forget to breathe properly.  Taking a few deep mindful breaths regularly will help you relax, get present, and oxygenate your brain.

12.  Ask for Help
If you’re reading this article, there’s a good chance you’re the type of person who takes pride in doing things all by yourself.  For the longest time, I did the same.  But recently, I’ve realized that asking for help not only makes my life a LOT easier, it also gives other people a chance to share their gifts and feel more accomplished.  Win-win!  Next time you’re stuck or unsure what to do next, don’t bang your head against the wall, just ask for help.

'