Get startedGet started for free

Creating a data frame (2)

The planets_df data frame should have 8 observations and 5 variables. It has been made available in the workspace, so you can directly use it.

This exercise is part of the course

Introduction to R

View Course

Exercise instructions

Use str() to investigate the structure of the new planets_df variable.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Check the structure of planets_df
Edit and Run Code