[R] tidyverse: read_csv() misses column
Kevin Thorpe
kev|n@thorpe @end|ng |rom utoronto@c@
Mon Nov 1 19:10:04 CET 2021
Is there a leading space on those variables for that row?
Kevin
> On Nov 1, 2021, at 2:01 PM, Rich Shepard <rshepard using appl-ecosys.com> wrote:
>
> On Mon, 1 Nov 2021, Jeff Newmiller wrote:
>
>> Sorry... untested code... use which... not where.
>
> Jeff,
>
> That problem's resolved; problems() found the lines.
>
> Question:
>
>> cor_disc
> # A tibble: 415,263 × 8
> site_nbr year mon day hr min tz disc
> <chr> <dbl> <chr> <chr> <chr> <chr> <chr> <dbl>
> 1 14171600 2009 10 23 00 00 PDT 8750
>
> While not seen in this message, the 2 in year and the 8 in disc are
> underlined. Why is that? I assume it indicates the value is numeric but I
> defined the type for each column as "c" and "i", respectively.
>
> Regards,
>
> Rich
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael’s Hospital
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.thorpe using utoronto.ca Tel: 416.864.5776 Fax: 416.864.3016
More information about the R-help
mailing list