Comments (9)
I simply replaced the variable name .data
in the function, so it works now. Will commit tonight.
from sjmisc.
I cannot reproduce this bug. Which information does your sessionInfo() provide?
from sjmisc.
Unfortunately I'm not at work anymore (linux pc), but will send you the sessionInfo() as soon as I'm back. On my home windows PC it works without any issues.
from sjmisc.
Unfortunately I'm not at work anymore (linux pc), but will send you the sessionInfo() as soon as I'm back. On my home windows PC it works without any issues.
In my experience, the common situation is just the other way round: windows at work and linux at home. ;-)
from sjmisc.
Well I guess it's a matter of sneaking partitions on work PC's =D
from sjmisc.
Unfortunately the error is still raised on the linux machine. and I reinstalled sjmisc
from github to be sure it's not related to that.
library(tidyverse)
library(sjmisc)
library(sjPlot)
library(sjstats)
d <- read_stata('GLES_Vorwahlquerschnitt_ZA5700_v1-0-0.dta')
d %>% select(q2c) %>% descr()
Error in mutate_impl(.data, dots) : basic_string::_M_replace_aux
21.
stop(structure(list(message = "basic_string::_M_replace_aux", call = mutate_impl(.data, dots), cppstack = NULL), .Names = c("message", "call", "cppstack"), class = c("std::length_error", "C++Error", "error", "condition")))
20.
mutate_impl(.data, dots)
19.
mutate_.tbl_df(.data, .dots = lazyeval::lazy_dots(...))
18.
mutate_(.data, .dots = lazyeval::lazy_dots(...))
17.
dplyr::mutate(., label = unname(get_label(.data, def.value = colnames(.data))))
16.
function_list[[i]](value)
15.
freduce(value, `_function_list`)
14.
`_fseq`(`_lhs`)
13.
eval(expr, envir, enclos)
12.
eval(quote(`_fseq`(`_lhs`)), env, env)
11.
withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
10.
tibble::as_tibble(psych::describe(.data)) %>% tibble::rownames_to_column(var = "variable") %>% dplyr::select_("-vars", "-mad") %>% dplyr::mutate(label = unname(get_label(.data, def.value = colnames(.data)))) %>% var_rename(median = "md")
9.
descr(.)
8.
function_list[[k]](value)
7.
withVisible(function_list[[k]](value))
6.
freduce(value, `_function_list`)
5.
`_fseq`(`_lhs`)
4.
eval(expr, envir, enclos)
3.
eval(quote(`_fseq`(`_lhs`)), env, env)
2.
withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
1.
d %>% select(q2c) %>% descr()
sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=de_DE.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] bindrcpp_0.1 sjstats_0.7.0 sjPlot_2.1.2 sjmisc_2.1.0 dplyr_0.5.0.9000
[6] purrr_0.2.2 readr_1.0.0 tidyr_0.6.0 tibble_1.2 ggplot2_2.2.0
[11] tidyverse_1.0.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.8 bindr_0.1 formatR_1.4 nloptr_1.0.4
[5] plyr_1.8.4 effects_3.1-2 tools_3.3.1 lme4_1.1-12
[9] nlme_3.1-128 gtable_0.2.0 lattice_0.20-34 Matrix_1.2-7.1
[13] psych_1.6.9 DBI_0.5-1 parallel_3.3.1 mvtnorm_1.0-5
[17] coin_1.1-3 haven_1.0.0 stringr_1.1.0 knitr_1.14
[21] lmtest_0.9-34 stats4_3.3.1 nnet_7.3-12 grid_3.3.1
[25] R6_2.2.0 survival_2.40-1 foreign_0.8-67 multcomp_1.4-6
[29] TH.data_1.0-7 minqa_1.2.4 modelr_0.1.0 reshape2_1.4.2
[33] magrittr_1.5 codetools_0.2-15 modeltools_0.2-21 scales_0.4.1
[37] splines_3.3.1 MASS_7.3-45 stringdist_0.9.4.2 assertthat_0.1
[41] mnormt_1.5-5 colorspace_1.2-7 sandwich_2.3-4 stringi_1.1.2
[45] lazyeval_0.2.0.9000 munsell_0.4.3 broom_0.4.1 zoo_1.7-13
from sjmisc.
You have dev-versions of dplyr and lazyeval - perhaps its an issue of those packages?
from sjmisc.
Most likely is an issue of dplyr. After installing the dev-version, I get the same error. You should file an issue over there.
from sjmisc.
from sjmisc.
Related Issues (20)
- Rec bug with "lo" characters
- select_helpers not working HOT 1
- Important bug in Rec HOT 2
- the speed of "rec" function slow when I use mutate with large dataset
- `move_columns` does not work when passed a variable in .after HOT 1
- rec and space strings
- Frequency of characters coercible as numerics
- Use str_contains for dataframe? HOT 2
- merge_imputations only providing a subset of variables
- Merges multiple imputed data frames into a single data frame HOT 3
- row_means() proportion of datapoints HOT 2
- FR: allow more printing formatting for frq HOT 1
- weights argument fails when using dplyr group_by
- frq fails when used for more than 1 variable and after `dplyr::group_by`
- Does not merge when data are in long format HOT 1
- Feature request: use -c syntax for descr "show" argument
- Issue with weighted percentage in `flat_table()`
- Issue with rec() else=copy not passing old labels
- sjmisc::rec() - val.labels function is not working
- sjmisc::rec generated factors not in the expected order
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sjmisc.