Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Creating data frames
Feature engineering


Great! Chris is a new real estate agent in Cibaly. He took over his friend's real estate agency. In this part you'll help Chris get to know the real estate market in Cibaly and set up the dataset so that it's useful for Chris.

Let's start by getting to know our data. Afterwards, we'll go over several examples of creating new columns and modifying existing ones.


Explore the houses data frame.

You can explore its contents and columns by using the head(), str(), and summary() functions. Try to answer the following:

  • How many observations are in the houses dataset?
  • How many columns are present in the houses dataset?
  • What can you tell about the column types in this data frame?

Explore basic statistics related to house prices (houses$price). What are the minimum, average, and maximum prices?

Click I'm done. Next exercise when you're done.

Stuck? Here's a hint!

Remember that the head() funcion displays 6 rows by default but can take the second optional argument - the number of rows to display. The str() function gives you info about the types. The summary() function allows you to compute multiple descriptive statistics in one call.