col_skip

0th

Percentile

Skip a column

Use this function to ignore a column when reading in a file. To skip all columns not otherwise specified, use cols_only().

Usage
col_skip()
Other parsers: cols_condense, cols, parse_datetime, parse_factor, parse_guess, parse_logical, parse_number, parse_vector
**Skip the index column when reading a dataframe** [Data Source](https://www.google.com/url?q=https://s3.amazonaws.com/udacity-hosted-downloads/ud651/wineQualityWhites.csv&sa=D&ust=1537996947820000) When I try to read the data only giving the filename, the first column is only an index list which I don't need. To prevent it from happening, we need to use col_types parameter to specify the columns we want to skip. X1 refers to the first column. Likewise, if you want to skip the 5th column for example, you need to use X5. To add more columns to skip, simple add another line of Xn = col_skip() separated with a comma within cols. r library(tidyverse) df.wine <- read_csv("wineQualityWhites.csv", col_types = cols(X1 = col_skip())) colnames(df.wine)  The code below gives the same result: r df.wine <- read_csv("wineQualityWhites.csv") %>% select(2:13) colnames(df.wine)  [Source](https://ugoproto.github.io/ugo_r_doc/Reading_Data_into_R_with_readr/)