Skip Rows on CSV Import

appetizer
import data
mild spicy
Author

Ryan Garnett

Published

March 31, 2023

Description
Skip a number of rows when reading a csv file
Ingredients
Package Data

readr

sample_dwelling_characteristics.csv


Sample Instructions

package::function("file_path/file_name.csv", skip = number)


Actual Instructions

readr::read_csv("C:/data/sample_dwelling_characteristics.csv", skip = 2)


Output

HALIFAX REGIONAL MUNICIPALITY (HRM) 08566615 10 NA...4 NA...5 SNEEZY AVE LAKE ECHO 1...9 1973 768 Manufactured Home...12 2 1...14 N...15 Manufactured Home...16 N...17 N...18 NA...19 NA...20 NA...21
HALIFAX REGIONAL MUNICIPALITY (HRM) 09781315 108 NA NA ATIKIAN DR EASTERN PASSAGE 1 2008 1400 2 Storey 3 3 N Average N N 44.61654 -63.46180 (44.61654, -63.4618)
HALIFAX REGIONAL MUNICIPALITY (HRM) 08567875 19 NA NA THE OTHER ST PORTERS LAKE 1 1991 896 Manufactured Home 2 1 N Manufactured Home N N NA NA NA
HALIFAX REGIONAL MUNICIPALITY (HRM) 10535001 15 NA NA KINGS WHARF PL DARTMOUTH 1 2012 NA NA 2 2 N NA N N NA NA NA
HALIFAX REGIONAL MUNICIPALITY (HRM) 10738822 25 NA NA ALDERNEY DR DARTMOUTH 1 2016 NA NA 2 2 N NA N N NA NA NA
HALIFAX REGIONAL MUNICIPALITY (HRM) 00848328 147 NA NA BROOKS DR EAST PRESTON 1 1982 1761 Split Entry NA 1 N Fair Y Y 44.72310 -63.43018 (44.7231, -63.43018)
HALIFAX REGIONAL MUNICIPALITY (HRM) 05599393 87 NA NA BIRCHILL DR EASTERN PASSAGE 1 1983 896 Manufactured Home 2 1 N Manufactured Home N N NA NA NA