search for: tibble

Displaying 20 results from an estimated 171 matches for "tibble".

Did you mean: wibble
2023 Oct 17
1
transform a list of arrays to tibble
Arnaud, Short answer may be that the tibble data structure will not be supporting row names and you may want to simply save those names in an additional column or externally. My first thought was to simply save the names you need and then put them back on the tibble. In your code, something like this: save.names <- names(my.ret.lst) res...
2023 Nov 03
1
Adding columns to a tibble based on a value in a different tibble
Hi everyone, I have a tibble with various ids and associated information. I need to add a new column to this tibble that retrieves a specific 'y' value from a different tibble that has some of the mentioned ids in the first column and a 'y' value in the second one. If the id, and so the 'y' value is fo...
2023 Nov 04
1
Adding columns to a tibble based on a value in a different tibble
...mpts to clarify what you mean without a satisfactory answer. Clarification at the outset with a reprex may save you and others a lot of frustration. Cheers, Bert On Sat, Nov 4, 2023 at 1:41?AM Alessandro Puglisi < alessandro.puglisi at gmail.com> wrote: > Hi everyone, > > I have a tibble with various ids and associated information. > > I need to add a new column to this tibble that retrieves a specific 'y' > value from a different tibble that has some of the mentioned ids in the > first column and a 'y' value in the second one. If the id, and so the '...
2023 Oct 17
1
transform a list of arrays to tibble
..., 0.08821), dim = c(5L, 1L), index = structure(c(1697068800, 1697155200, 1697241600, 1697328000, 1697414400), tzone = "UTC", tclass = "Date"), class = c("xts", "zoo"))) I will compute some function from PerformanceAnalytics package and write all results in a tibble. Let's apply a first function, Return.annualized() (at first I computed returns from daily prices). I have now a list of arrays named my.ret.lst: my.ret.lst <- list(BTCUSDT = structure(15.36, dim = c(1L, 1L), dimnames = list( "Annualized Return", NULL)), ETHUSDT = structure(4....
2016 Dec 19
4
Problems installing tibble (ggplot2) in R running Ubuntu 14.04
Hi, I am unable to install tibble, a required package for ggplot2 in R. I am running R (version 3.3.2 ) in RStudio (version 1.0.44). My OS is ubuntu 14.04 (64 bits). I get the same error when running R from the terminal. Any help would be gretly appreciated. Kind regards, Terje **************** Error messages: ****************...
2020 Nov 21
2
Error in unsplit() with tibbles
...t fix it... -pd > On 21 Nov 2020, at 17:42 , Marc Schwartz via R-devel <r-devel at r-project.org> wrote: > > >> On Nov 21, 2020, at 10:55 AM, Mario Annau <mario.annau at gmail.com> wrote: >> >> Hello, >> >> using the `unsplit()` function with tibbles currently leads to the >> following error: >> >>> mtcars_tb <- as_tibble(mtcars, rownames = NULL) >>> s <- split(mtcars_tb, mtcars_tb$gear) >>> unsplit(s, mtcars_tb$gear) >> Error: Must subset rows with a valid subscript vector. >> ? Logica...
2017 Feb 12
1
Problems installing tibble (ggplot2) in R running Ubuntu 14.04
On 12 February 2017 at 12:28, Jeroen Ooms wrote: | On Mon, Dec 19, 2016 at 2:27 PM, Terje J?rgensen <terjej at imr.no> wrote: | > Hi, | > | > I am unable to install tibble, a required package for ggplot2 in R. I am | > running R (version 3.3.2 ) in RStudio (version 1.0.44). My OS is ubuntu | > 14.04 (64 bits). | | I was able to reproduce this problem. What happened is that you | installed "r-cran-rcpp" from the ubuntu repositories, which is a few | y...
2016 Dec 19
0
Problems installing tibble (ggplot2) in R running Ubuntu 14.04
On 12/19/2016 08:27 AM, Terje J?rgensen wrote: > Hi, > > I am unable to install tibble, a required package for ggplot2 in R. I am > running R (version 3.3.2 ) in RStudio (version 1.0.44). My OS is ubuntu > 14.04 (64 bits). > I get the same error when running R from the terminal. > > Any help would be gretly appreciated. > > Kind regards, > Terje Terje, The s...
2020 Nov 21
0
Error in unsplit() with tibbles
Cool - thank you Peter! @Marc: This is really not a tidyverse vs base-R debate and I personally think that they should both work together for most parts. The common environment is still R. But just to give you the full picture I also filed a bug for tibbles (https://github.com/tidyverse/tibble/issues/829). With these two fixes I think that split/unsplit would work for tibbles and users (like me) just don't have to care in which "environments" they are working in. Cheers, Mario On Sat, 21 Nov 2020 at 17:54, Peter Dalgaard <pdalgd a...
2020 Nov 21
3
Error in unsplit() with tibbles
Hello, using the `unsplit()` function with tibbles currently leads to the following error: > mtcars_tb <- as_tibble(mtcars, rownames = NULL) > s <- split(mtcars_tb, mtcars_tb$gear) > unsplit(s, mtcars_tb$gear) Error: Must subset rows with a valid subscript vector. ? Logical subscripts must match the size of the indexed input. x In...
2017 Aug 14
4
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
...n case someone recognizes exactly what is happening here. The error is: Error in mut_env_parent(overscope$.top_env, lexical_env) : object 'rlang_mut_env_parent' not found and it occurs in three situations: 1) Using tidyr::nest() on an output from dplyr::group_by() 2) Using tibble::tibble() with <name> = <value> arguments 3) Using dplyr::select() on a tibble to select two columns Any obvious clues as to what's happening here? The only non-base packages loaded are current tidyverse, forcats, magrittr, readxl and stringr. Thanks, John John Szumiloski, P...
2020 Jul 10
2
Strange behaviour of methods::slot() when returning a tibble
I have an S4 object class defined in a Bioconductor package which contains multiple slots, some of which are tibbles, whilst others are vectors. If I call slot(object, name) where 'name' is an slot that contains a vector, everything works as expected. However, when I call slot(object, name) where 'name' is an slot that contains a tibble I get the following warning: Warning message: `...` is n...
2017 Aug 14
2
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
...#39; on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. Desktop> library(tidyverse) Loading tidyverse: ggplot2 Loading tidyverse: tibble Loading tidyverse: tidyr Loading tidyverse: readr Loading tidyverse: purrr Loading tidyverse: dplyr Conflicts with tidy packages -------------------------------------------------------------- filter(): dplyr, stats lag(): dplyr, stats Desktop> library(magrittr) Attaching package: ?magrittr?...
2020 Nov 21
0
Error in unsplit() with tibbles
> On Nov 21, 2020, at 10:55 AM, Mario Annau <mario.annau at gmail.com> wrote: > > Hello, > > using the `unsplit()` function with tibbles currently leads to the > following error: > >> mtcars_tb <- as_tibble(mtcars, rownames = NULL) >> s <- split(mtcars_tb, mtcars_tb$gear) >> unsplit(s, mtcars_tb$gear) > Error: Must subset rows with a valid subscript vector. > ? Logical subscripts must match the...
2023 Oct 26
1
Bug in print for data frames?
...me C (you can see this if you print names(x) ), but since the column contains a dataframe, it chooses to use the column name of y when printing. If you try x$D <- x you'll see it generate new names when printing, but the names within x remain as A, B, C, D. This is a situation where tibbles do a better job than dataframes: if you created x and y as tibbles instead of dataframes and executed your code, you'd see this: library(tibble) x <- tibble(A = 1, B = 2, C = 3) y <- tibble(A = 1) x$C <- y[1] x #> # A tibble: 1 ? 3 #> A B C$A...
2017 Nov 22
2
Tibble o data.table?
Buenas Os queria preguntar que ventaja le veis a las tibbles frente a los data.table, ya que para mi, quitando el uso de librerias como tidyr o purrr, en el resto prefiero usar data.table. Me parece igual de potente y mucho más rápido, y no le veo las supuestas ventajas, pero quiero conocer vuestra opinion. Gracias Jesús [[alternative HTML version delete...
2017 Nov 22
3
Tibble o data.table?
...e no le pillo la gracia...Quizas sea el apoyo de Rstudio lo que me tire para atras... ________________________________ De: Carlos Ortega <cof en qualityexcellence.es> Enviado: miércoles, 22 de noviembre de 2017 21:29 Para: Jesús Para Fernández Cc: r-help-es en r-project.org Asunto: Re: [R-es] Tibble o data.table? Hola, Si te mueves en el "tidyverse" y te gustan los "pipes", realmente no te queda otra opción que usar los tibbles. La sintaxis de data.table es un tanto compleja frente a la sencillez que ofrece el trabajar con pipelines y para conjuntos medianos, no hay tant...
2017 Aug 14
0
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
...ublications. > > Type 'demo()' for some demos, 'help()' for on-line help, or > 'help.start()' for an HTML browser interface to help. > Type 'q()' to quit R. > > Desktop> library(tidyverse) > Loading tidyverse: ggplot2 > Loading tidyverse: tibble > Loading tidyverse: tidyr > Loading tidyverse: readr > Loading tidyverse: purrr > Loading tidyverse: dplyr > Conflicts with tidy packages -------------------------------------------------------------- > filter(): dplyr, stats > lag(): dplyr, stats > Desktop> library(m...
2020 Jul 10
0
Strange behaviour of methods::slot() when returning a tibble
...an find where that message is coming from by running options(warn=2) first, which will convert it to an error. Duncan Murdoch On 10/07/2020 11:54 a.m., Stephen Martin Pederson wrote: > I have an S4 object class defined in a Bioconductor package which contains multiple slots, some of which are tibbles, whilst others are vectors. If I call > > slot(object, name) > > where 'name' is an slot that contains a vector, everything works as expected. However, when I call slot(object, name) where 'name' is an slot that contains a tibble I get the following warning: > &gt...
2017 Nov 22
3
Tibble o data.table?
Que es postgres y presto?? Se uqe google tiene la respuesta,.... ________________________________ De: José Luis Cañadas <canadasreche en gmail.com> Enviado: miércoles, 22 de noviembre de 2017 22:01 Para: Jesús Para Fernández Cc: Carlos Ortega; r-help-es en r-project.org Asunto: Re: [R-es] Tibble o data.table? Yo la ventaja que le veo a tibble y demás cosas del mundo tidy es la conexión a fuentes externas , como postgres,spark, presto y usar dplyr como front. El mié., 22 nov. 2017 21:51, Jesús Para Fernández <j.para.fernandez en hotmail.com<mailto:j.para.fernandez en hotmail.com&gt...