BLACK FRIDAY EXTRA SAVINGS EVENT - EXTENDED
START FREE

Print entire dataset

Screen Link: https://app.dataquest.io/m/500/data-manipulation-with-r%3A-basics/5/importing-and-storing-data-in-r

My Code:

library(readr)
# Add your code below
monster_jobs_clean <- read_csv("monster_jobs.csv")

What I expected to happen:
Print the 86 rows of the csv

What actually happened:
Prints only 50

Hi @juanh80702:

Welcome to the community! I think you are supposed to read monster_jobs_clean.csv and not monster_jobs.csv. Hope this clarifies!

Hi @masterryan.prof, yeah i readed monster_jobs_clean.csv and I wanted to experiment with monster_jobs.csv, so when i readed monster_jobs.csv shows me a dataset of 50 rows, but when its decribed the dataset here https://app.dataquest.io/m/500/data-manipulation-with-r%3A-basics/3/describing-our-dataset , they explain that is a dataset of 86 rows.
Sorry for my English, i don’t speak it very well :sweat_smile:

Hi @juanh80702: If I’m not wrong, I think by 86 rows they mean the original uncleaned csv file (i.e. monster_jobs.csv ). After it has been cleaned it will be 50 rows instead ( monster_jobs_clean.csv).

Hi @masterryan.prof. Ohhhh ok, but it prints monster_jobs.csv because it shows more columns but the same number of rows

Hi @juanh80702, the display of dataframes is limited to 50 rows on the user interface. You can see the entire dataset by entering this command in the optional pop-up console, after running the code to generate the dataframe:

print(monster_jobs_clean, n = 86)

Best,
-Casey

1 Like

Thanks, it worked :smiley:

1 Like