read_csv not recognized

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

read_csv not recognized

Carlos Gonzalez
Hi everybody,

I've load tidyverse:

library(tidyverse)

and then try to use the function read_csv() but  it didn't recognize it.

Thanks!

--
Saludos / Regards

Carlos A. Gonzalez
Mobile +598 94 234 653
[hidden email]

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: read_csv not recognized

Hasan Diwan-2
function (file, col_names = TRUE, col_types = NULL, locale =
default_locale(),
    na = c("", "NA"), quoted_na = TRUE, quote = "\"", comment = "",
    trim_ws = TRUE, skip = 0, n_max = Inf, guess_max = min(1000,
        n_max), progress = show_progress(), skip_empty_rows = TRUE)
{
    tokenizer <- tokenizer_csv(na = na, quoted_na = quoted_na,
        quote = quote, comment = comment, trim_ws = trim_ws,
        skip_empty_rows = skip_empty_rows)
    read_delimited(file, tokenizer, col_names = col_names, col_types =
col_types,
        locale = locale, skip = skip, skip_empty_rows = skip_empty_rows,
        comment = comment, n_max = n_max, guess_max = guess_max,
        progress = progress)
}

Is the source from my copy of tidyverse. Not too involved to copy/paste
into one's .Rprofile or type into the console session. -- H

On Mon, 8 Mar 2021 at 12:53, Carlos Gonzalez <[hidden email]> wrote:

> Hi everybody,
>
> I've load tidyverse:
>
> library(tidyverse)
>
> and then try to use the function read_csv() but  it didn't recognize it.
>
> Thanks!
>
> --
> Saludos / Regards
>
> Carlos A. Gonzalez
> Mobile +598 94 234 653
> [hidden email]
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.
>


--
OpenPGP: https://hasan.d8u.us/openpgp.asc
If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
<http://bit.ly/hd1AppointmentRequest>*.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
<http://bit.ly/hd1AppointmentRequest>*.

<https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1>Sent
from my mobile device
Envoye de mon portable

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: read_csv not recognized

Eric Berger
Hi Carlos,
That is strange. The function read_csv is in the readr package.
You could try

library(readr)
readr::read_csv(etc)

Let us know what happens.
Eric


On Mon, Mar 8, 2021 at 3:57 PM Hasan Diwan <[hidden email]> wrote:

> function (file, col_names = TRUE, col_types = NULL, locale =
> default_locale(),
>     na = c("", "NA"), quoted_na = TRUE, quote = "\"", comment = "",
>     trim_ws = TRUE, skip = 0, n_max = Inf, guess_max = min(1000,
>         n_max), progress = show_progress(), skip_empty_rows = TRUE)
> {
>     tokenizer <- tokenizer_csv(na = na, quoted_na = quoted_na,
>         quote = quote, comment = comment, trim_ws = trim_ws,
>         skip_empty_rows = skip_empty_rows)
>     read_delimited(file, tokenizer, col_names = col_names, col_types =
> col_types,
>         locale = locale, skip = skip, skip_empty_rows = skip_empty_rows,
>         comment = comment, n_max = n_max, guess_max = guess_max,
>         progress = progress)
> }
>
> Is the source from my copy of tidyverse. Not too involved to copy/paste
> into one's .Rprofile or type into the console session. -- H
>
> On Mon, 8 Mar 2021 at 12:53, Carlos Gonzalez <[hidden email]> wrote:
>
> > Hi everybody,
> >
> > I've load tidyverse:
> >
> > library(tidyverse)
> >
> > and then try to use the function read_csv() but  it didn't recognize it.
> >
> > Thanks!
> >
> > --
> > Saludos / Regards
> >
> > Carlos A. Gonzalez
> > Mobile +598 94 234 653
> > [hidden email]
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > [hidden email] 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.
> >
>
>
> --
> OpenPGP: https://hasan.d8u.us/openpgp.asc
> If you wish to request my time, please do so using
> *bit.ly/hd1AppointmentRequest
> <http://bit.ly/hd1AppointmentRequest>*.
> Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
> <http://bit.ly/hd1AppointmentRequest>*.
>
> <https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1
> >Sent
> from my mobile device
> Envoye de mon portable
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: read_csv not recognized

Carlos Gonzalez
Thank you!

The problem was that tidyverse has not been loaded correctly. Sorry!

El lun, 8 de mar. de 2021 a la(s) 18:24, Eric Berger ([hidden email])
escribió:

> Hi Carlos,
> That is strange. The function read_csv is in the readr package.
> You could try
>
> library(readr)
> readr::read_csv(etc)
>
> Let us know what happens.
> Eric
>
>
> On Mon, Mar 8, 2021 at 3:57 PM Hasan Diwan <[hidden email]> wrote:
>
> > function (file, col_names = TRUE, col_types = NULL, locale =
> > default_locale(),
> >     na = c("", "NA"), quoted_na = TRUE, quote = "\"", comment = "",
> >     trim_ws = TRUE, skip = 0, n_max = Inf, guess_max = min(1000,
> >         n_max), progress = show_progress(), skip_empty_rows = TRUE)
> > {
> >     tokenizer <- tokenizer_csv(na = na, quoted_na = quoted_na,
> >         quote = quote, comment = comment, trim_ws = trim_ws,
> >         skip_empty_rows = skip_empty_rows)
> >     read_delimited(file, tokenizer, col_names = col_names, col_types =
> > col_types,
> >         locale = locale, skip = skip, skip_empty_rows = skip_empty_rows,
> >         comment = comment, n_max = n_max, guess_max = guess_max,
> >         progress = progress)
> > }
> >
> > Is the source from my copy of tidyverse. Not too involved to copy/paste
> > into one's .Rprofile or type into the console session. -- H
> >
> > On Mon, 8 Mar 2021 at 12:53, Carlos Gonzalez <[hidden email]> wrote:
> >
> > > Hi everybody,
> > >
> > > I've load tidyverse:
> > >
> > > library(tidyverse)
> > >
> > > and then try to use the function read_csv() but  it didn't recognize
> it.
> > >
> > > Thanks!
> > >
> > > --
> > > Saludos / Regards
> > >
> > > Carlos A. Gonzalez
> > > Mobile +598 94 234 653
> > > [hidden email]
> > >
> > >         [[alternative HTML version deleted]]
> > >
> > > ______________________________________________
> > > [hidden email] 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.
> > >
> >
> >
> > --
> > OpenPGP: https://hasan.d8u.us/openpgp.asc
> > If you wish to request my time, please do so using
> > *bit.ly/hd1AppointmentRequest
> > <http://bit.ly/hd1AppointmentRequest>*.
> > Si vous voudrais faire connnaisance, allez a *
> bit.ly/hd1AppointmentRequest
> > <http://bit.ly/hd1AppointmentRequest>*.
> >
> > <https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1
> > >Sent
> > from my mobile device
> > Envoye de mon portable
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > [hidden email] 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.
> >
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.
>


--
Saludos / Regards

Carlos A. Gonzalez
Mobile +598 94 234 653
[hidden email]

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.