Is there a way to get read_csv to replicate read.csv’s column naming
convention? I find spaces cause more problems than they solve, especially
when working with beginners. “No, not single quote, not double quote, this
*other* quote symbol you’ve never used before.”

On Mon, Oct 16, 2017 at 11:48 AM Ben Bolker <[email protected]> wrote:

>
>  +1 to François's comments.
>
>  If you feel like using
>
>  http://www.datacarpentry.org/R-ecology-lesson/02-starting-with-data.html
>
>  but don't feel like forking it and rewriting it you can use
> check.names=FALSE to prevent R from coercing column names to a
> syntactically valid form. (The existing lesson already covers
> stringsAsFactors=FALSE.)
>
>   If you have 5 minutes to spare I would take the time to explain to
> learners that including white space in column headers is a bad idea in
> the long run ...
>
>  Ben Bolker
>
>
>
> On 17-10-16 10:39 AM, François Michonneau wrote:
> > Hi Raniere,
> >
> >   We are teaching the tidyverse in the Data Carpentry R ecology lesson.
> > We recently transitioned to using read_csv and write_csv instead of the
> > equivalent functions that come with R. We are keeping some of the syntax
> > and notation of the base R programming because even if the tidyverse is
> > becoming increasingly popular, people will inherit code from lab members
> > that is not using it, and knowing a few key elements of the syntax will
> > help.
> >
> >   Cheers,
> >   -- François
> >
> > On Mon, Oct 16, 2017 at 10:26 AM, Raniere Silva <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     After a long discussion with Anna Krystalli and some work using R
> >     reviewed by Mario Antonioletti, I got convinced that we should teach
> >     Tidyverse <https://www.tidyverse.org/> to novices because it solves
> >     some R issues. One example is to use readr
> >     <http://readr.tidyverse.org/> instead of native R read.XXX function
> >     because it fix the conversion of white space to dot in headers.
> >
> >     Data Carpentry R Ecology
> >     <
> http://www.datacarpentry.org/R-ecology-lesson/02-starting-with-data.html>
> >     doesn't use Tidyverse. I don't know if they have any plan to migrate
> >     the lesson to Tidyverse. And I don't remember if any other Carpentry
> >     lesson adopts Tidyverse from the begin specially because of the
> >     overload of teaching how to load it to novices which was the source
> >     of a log discussion for the Python lesson that never reach a
> agreement.
> >
> >     Raniere
> >
> >     _______________________________________________
> >     Discuss mailing list
> >     [email protected]
> >     <mailto:[email protected]>
> >     http://lists.software-carpentry.org/listinfo/discuss
> >     <http://lists.software-carpentry.org/listinfo/discuss>
> >
> >
> >
> >
> > _______________________________________________
> > Discuss mailing list
> > [email protected]
> > http://lists.software-carpentry.org/listinfo/discuss
> >
> _______________________________________________
> Discuss mailing list
> [email protected]
> http://lists.software-carpentry.org/listinfo/discuss
_______________________________________________
Discuss mailing list
[email protected]
http://lists.software-carpentry.org/listinfo/discuss

Reply via email to