search for: tibble

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

2017 Aug 14
2
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...
2017 Aug 14
1
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?...
2017 Aug 14
1
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...
2017 Aug 14
1
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
...ing 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. > &gt...
2017 Nov 28
1
dplyr - add/expand rows
...70 , "QMC", > "07EA001" , 1971 , 1971 , "QMM", > "07EA001" , 1972 , 1976 , "QMC", > "07EA001" , 1977 , 1983 , "QRC" > ) > > result <- input %>% > rowwise() %>% > do(tibble(station = .$station, > year = seq(.$from, .$to), > record = .$record) > ) > > ########################### In a bit more 'base R' mode I did input$year <- with(input, Map(seq, from, to)) res0 <- with(input, Map(data.frame, station=st...
2017 Aug 14
1
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
The most likely explanation is you have a new version of dplyr/tibble and an old version of rlang. Try re-installing rlang. Hadley On Mon, Aug 14, 2017 at 9:26 AM, Szumiloski, John <John.Szumiloski at bms.com> wrote: > UseRs, > > When doing some data manipulations using the tidyverse, I am repeatedly getting the same error message in now three separa...
2017 Nov 28
1
dplyr - add/expand rows
..."07EA001" , 1971 , 1971 , "QMM", >> "07EA001" , 1972 , 1976 , "QMC", >> "07EA001" , 1977 , 1983 , "QRC" >> ) >> >> result <- input %>% >> rowwise() %>% >> do(tibble(station = .$station, >> year = seq(.$from, .$to), >> record = .$record) >> ) >> >> ########################### >> > > In a bit more 'base R' mode I did > > input$year <- with(input, Map(seq, from, to)) >...
2017 Aug 14
1
tidyverse repeating error: "object 'rlang_mut_env_parent' not found"
...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, stat...
2017 Nov 29
1
dplyr - add/expand rows
...uot;E"), stringsAsFactors = FALSE) stations <- rle(d_df$station) stations$value <- gsub( " ", "0", paste0("station", format(1:length(stations$value), width = 6))) d_df$station <- rep(stations$value, stations$lengths) ## prepare tibble and data.table versions d_tbl <- as_tibble(d_df) d_dt <- as.data.table(d_df) ## solutions ########################## ## Bert - by fun_bert <- function(d) { out <- by( d, d$station, function(x) with(x, { i <- to - from +1 data.frame(record =rep(record,i),...
2017 Nov 27
1
dplyr - add/expand rows
...", "07EA001" , 1961 , 1970 , "QMC", "07EA001" , 1971 , 1971 , "QMM", "07EA001" , 1972 , 1976 , "QMC", "07EA001" , 1977 , 1983 , "QRC" ) result <- input %>% rowwise() %>% do(tibble(station = .$station, year = seq(.$from, .$to), record = .$record) ) ########################### Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Sun, Nov 26, 2017 at 2:10 PM, Ber...
2017 Nov 29
1
dplyr - add/expand rows
...stringsAsFactors = FALSE) > stations <- rle(d_df$station) > stations$value <- gsub( > ? " ", "0", > ? paste0("station", format(1:length(stations$value), width = 6))) > d_df$station <- rep(stations$value, stations$lengths) > > ## prepare tibble and data.table versions > d_tbl <- as_tibble(d_df) > d_dt <- as.data.table(d_df) > > ## solutions ########################## > > ## Bert - by > fun_bert <- function(d) { > ? out <- by( > ??? d, d$station, function(x) with(x, { > ????? i <- to - from...
2017 Nov 29
1
dplyr - add/expand rows
...gt;> stations <- rle(d_df$station) >> stations$value <- gsub( >> " ", "0", >> paste0("station", format(1:length(stations$value), width = 6))) >> d_df$station <- rep(stations$value, stations$lengths) >> >> ## prepare tibble and data.table versions >> d_tbl <- as_tibble(d_df) >> d_dt <- as.data.table(d_df) >> >> ## solutions ########################## >> >> ## Bert - by >> fun_bert <- function(d) { >> out <- by( >> d, d$station, function(x) with(...
2017 Aug 17
2
How to install Tidyverse on Ubuntu 17.04? Getting gcc errors for -fstack-protector-strong and -Wdate-time
...cies ?colorspace?, ?munsell?, ?plyr?, ?psych?, ?reshape2?, ?bindrcpp?, ?Rcpp?, ?digest?, ?scales?, ?curl?, ?openssl?, ?cellranger?, ?stringi?, ?selectr?, ?tidyselect?, ?broom?, ?dplyr?, ?forcats?, ?ggplot2?, ?haven?, ?httr?, ?jsonlite?, ?lubridate?, ?modelr?, ?purrr?, ?readr?, ?readxl?, ?stringr?, ?tibble?, ?rvest?, ?tidyr?, ?xml2? trying URL 'https://cran.rstudio.com/src/contrib/colorspace_1.3-2.tar.gz' Content type 'application/x-gzip' length 293433 bytes (286 KB) ================================================== downloaded 286 KB trying URL 'https:...
2017 Nov 08
2
Ggplot error
...0] LC_TELEPHONE=C LC_MEASUREMENT=tr_TR.UTF-8 > LC_IDENTIFICATION=C > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1] dplyr_0.7.4 purrr_0.2.4 readr_1.1.1 tidyr_0.7.2 > tibble_1.3.4 tidyverse_1.1.1 > [7] ggplot2_2.2.1 > > loaded via a namespace (and not attached): > [1] Rcpp_0.12.13 lubridate_1.7.1 lattice_0.20-35 class_7.3-14 > assertthat_0.2.0 > [6] ipred_0.9-6 psych_1.7.8 foreach_1.4.3 R6_2.2.2 > cellr...
2017 Nov 08
1
Ggplot error
...ME=C LC_ADDRESS=C [10] LC_TELEPHONE=C LC_MEASUREMENT=tr_TR.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] dplyr_0.7.4 purrr_0.2.4 readr_1.1.1 tidyr_0.7.2 tibble_1.3.4 tidyverse_1.1.1 [7] ggplot2_2.2.1 loaded via a namespace (and not attached): [1] Rcpp_0.12.13 lubridate_1.7.1 lattice_0.20-35 class_7.3-14 assertthat_0.2.0 [6] ipred_0.9-6 psych_1.7.8 foreach_1.4.3 R6_2.2.2 cellranger_1.1.0 [11] plyr_1.8.4...
2017 Nov 26
2
dplyr - add/expand rows
To David W.'s point about lack of a suitable reprex ("reproducible example"), Bill's solution seems to be for only one station. Here is a reprex and modification that I think does what was requested for multiple stations, again using base R and data frames, not dplyr and tibbles. First the reprex with **two** stations: > d <- data.frame( station = rep(c("one","two"),c(5,4)), from = c(60,61,71,72,76,60,65,82,83), to = c(60,70,71,76,83,64, 81, 82,83), record = c("A","B","C&qu...
2018 May 25
1
how to make the code more efficient using lapply
...files are huge). In my alternative approach, the contents of each input file are discarded after they have been appended to the previous ones. The data frame (dfall) is enlarged at each iteration. Many times I have seen recommendations against this. The help page for read_xlsx says it returns a tibble. I've never had a need to learn about tibbles, but there may be some overhead in creating a tibble instead of a data frame that is slowing down the loop. There are other packages that read Excel files that create data frames. Maybe they would be faster. I don't see anything in the original...
2017 Aug 07
1
tidyquant error downloading symbols for Index
...antmod Loading required package: TTR Version 0.4-0 included new data defaults. See ?getSymbols. Learn from a quantmod author: https://www.datacamp.com/courses/importing-and-managing-financial-data-in-r Loading required package: tidyverse Loading tidyverse: ggplot2 Loading tidyverse: tibble Loading tidyverse: tidyr Loading tidyverse: readr Loading tidyverse: purrr Loading tidyverse: dplyr Conflicts with tidy packages ----------------------------------------------------- as.difftime(): lubridate, base date(): lubridate, base filter(): dplyr, stats first(): dplyr, xts...
2017 Nov 26
1
dplyr - add/expand rows
...-d$YEAR_FROM+1) j <- sequence(d$YEAR_TO-d$YEAR_FROM+1) transform(d[i,], YEAR=YEAR_FROM+j-1, YEAR_FROM=NULL, YEAR_TO=NULL) Bill Dunlap TIBCO Software wdunlap tibco.com On Sat, Nov 25, 2017 at 11:18 AM, Hutchinson, David (EC) < david.hutchinson at canada.ca> wrote: > I have a returned tibble of station operational record similar to the > following: > > > data.collection > # A tibble: 5 x 4 > STATION_NUMBER YEAR_FROM YEAR_TO RECORD > <chr> <int> <int> <chr> > 1 07EA001 1960 1960 QMS > 2 07EA0...
2017 Nov 28
1
dplyr - add/expand rows
...;s point about lack of a suitable reprex ("reproducible > example"), Bill's solution seems to be for only one station. > > Here is a reprex and modification that I think does what was requested for > multiple stations, again using base R and data frames, not dplyr and > tibbles. > > First the reprex with **two** stations: > > > d <- data.frame( station = rep(c("one","two"),c(5,4)), > from = c(60,61,71,72,76,60,65,82,83), > to = c(60,70,71,76,83,64, 81, 82,83), > record = c(&quot...