search for: col_types

Displaying 8 results from an estimated 8 matches for "col_types".

2018 Jan 02
1
httr::content without message
...ked through the httr code and sure enough for a .csv mime time it calls readr::read_csv(). The httr::content docs suggest not using automatic parsing in a package, rather to determine mime type and parse yourself and Ben's suggestion also works if I do: junk <- readr::read_csv(r1$content, col_types = cols()) Perfect. Using httr rather than putting the url in any of the read.csv or read_csv type code allows me greater control if the request fails. Thanks again, -Roy > On Jan 2, 2018, at 9:44 AM, Ben Tupper <btupper at bigelow.org> wrote: > > Ahoy! > > That's a m...
2018 Jan 02
0
httr::content without message
Ahoy! That's a message generated by the readr::read_table() function (or it's friends). You can suppress it a number of ways, but this should work as httr::content() will pass through arguments, like col_types = cols(), to the file reader. junk <- httr::content(r1, col_types = cols()) See more here... https://blog.rstudio.com/2016/08/05/readr-1-0-0/ <https://blog.rstudio.com/2016/08/05/readr-1-0-0/> Cheers, Ben > On Jan 2, 2018,...
2017 Nov 17
3
Dataframe is character
...y(readxl) > library(metafor) > setwd("C:/docs/Work2/Statistic_Analyses/MetaQTcAD") > getwd() [1] "C:/docs/Work2/Statistic_Analyses/MetaQTcAD" > > dat <- read_excel("Hedges-g_QTc MA_R05.xlsx", sheet = 2, col_names=TRUE, col_types = c("guess")) > class("dat") [1] "character" > class("yi") [1] "character" > [[alternative HTML version deleted]]
2018 Jan 02
4
httr::content without message
Hi All: I am using httr to download files form a service, in this case a .csv file. When I use httr::content on the result, I get a message. Since this will be in a package. I want to suppress the message, but haven't figured out how to do so. The following should reproduce the result: myURL <-
2017 Nov 17
0
Dataframe is character
...; > setwd("C:/docs/Work2/Statistic_Analyses/MetaQTcAD") > > getwd() > [1] "C:/docs/Work2/Statistic_Analyses/MetaQTcAD" > > > > > dat <- read_excel("Hedges-g_QTc MA_R05.xlsx", sheet = 2, col_names=TRUE, > col_types = c("guess")) > > class("dat") > [1] "character" > > class("yi") > [1] "character" > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org ma...
2017 Sep 14
1
Print All Warnings that Occurr in All Parallel Nodes
...AG", "ID_del_AEG", "Descripcion", "Time_ON", "Time_OFF", "Delta_Time", "Comentario", "Es_Alarma", "Es_Ultima", "Comentarios"), col_types = cols( "SCADA" = "c", "TAG" = "c", "ID_del_AEG" = "c", "Descripcion" = "c", "Time_ON" = "c", "Time_OFF" = "c", "Delta...
2016 Apr 27
0
R Script Template
The subject of your email is missing. Perhaps you need to read the Posting Guide (again?) about attachments. Embedding your example directly in the body of the email is generally more accessible in archives than attaching it. -- Sent from my phone. Please excuse my brevity. On April 27, 2016 1:14:17 PM GMT+01:00, G.Maubach at gmx.de wrote: >Hi All, > >I am addressing this post to all
2016 Apr 27
2
R Script Template
Hi All, I am addressing this post to all who are new to R. When learing R in the last weeks I took some notes for myself to have code snippets ready for the data analysis process. I put these snippets together as a script template for future use. Almost all of the given command prototypes are tested. The template script contains snippets for best practices and leaves out the commands that