Export, Upload, Import

Lab 1C

Directions: Follow along with the slides and answer the questions in red font in your journal.

Whose data? Our data.

  • Throughout the previous labs, we've been using data that was already loaded in RStudio.
    • But what if we want to analyze our own data?
  • This lab is all about learning how we to load our own participatory sensing data into RStudio

Export, upload, import

  • Before we can perform any analysis, we have to load data into R.
  • When we want to get our participatory sensing data into RStudio, we:
    • Export the data from your class' campaign page.
    • Upload data to RStudio server
    • Import the data into R's working memory

Exporting

  • To begin, go to your class' landing page.
    • Click on the Campaign Manager
    • Fill in your username and password and click “Sign in.”
      Campaign manager
      If you forget your username or password, ask your teacher to remind you.

Campaign Manager

Campaign Manager

  • After logging in, your screen should look similar to this.
  • Click on the dropdown arrow for the campaign you are interested in downloading.

Dropdown Arrow

  • The options for the dropdown menu will look like this.
    Campaign tab
  • Look for the option labeled Export Data. Click it.
    • Remember where you save your file!

Exporting

  • When you clicked the Export link a .csv file was saved on your computer.
  • Now that the file is on your computer, we need to upload it into RStudio.

Uploading

  • Look at the four different panes in RStudio.
    • Find the pane with a Files tab.
    • Click it!

Uploading