1. Learn
  2. /
  3. Courses
  4. /
  5. Helsinki Open Data Science

Connected

Exercise

More datasets

Welcome to the Logistic regression chapter.

During the next exercises, we will be combining, wrangling and analysing two new data sets retrieved from the UCI Machine Learning Repository, a great source for open data.

The data are from two identical questionaires related to secondary school student alcohol comsumption in Portugal. Read about the data and the variables here.

R offers the convenient paste() function which makes it easy to combine characters. Let's utilize it to get our hands on the data!

Instructions

100 XP
  • Create and print out the object url_math.
  • Create object math by reading the math class questionaire data from the web address defined in url_math.
  • Create and print out url_por.
  • Adjust the code: similarily to url_math, make url_por into a valid web address using paste() and the url object.
  • Create object por by reading the portuguese class questionaire data from the web address defined in url_por.
  • Print out the names of the columns in both data sets.