Questions tagged [expss]

expss package provides tabulation functions with support for 'SPSS'-style labels, multiple / nested banners, weights, multiple-response variables and significance testing.

expss package provides tabulation functions with support for 'SPSS'-style labels, multiple / nested banners, weights, multiple-response variables and significance testing.

147 questions
2
votes
2 answers

Using R expss and data.table is it possible to load data.table labels from a csv file instead of typing the code in by hand?

Applying labels is an important part of making survey data comprehensible when reported So the best example I can find uses expss::apply_labels() e.g the famous mtcars example…
Peter King
  • 91
  • 8
2
votes
1 answer

Passing arguments dynamically in Expss tables with user-defined functions

I have a (new) question related to expss tables. I wrote a very simple UDF (that relies on few expss functions), as follows: library(expss) z_indices <- function(x, m_global, std_global, weight=NULL){ if(is.null(weight)) weight = rep(1,…
Maxence Dum.
  • 121
  • 1
  • 9
2
votes
2 answers

R expss use_labels and dplyr logic

I trying to get expss use_labels to work with dplyr logic - see example below. The vignette states the following under use_labels. By now variable labels support available only for expressions which will be evaluated inside data.frame. Is this the…
MarkWebb
  • 59
  • 4
2
votes
1 answer

How do you remove empty rows and add descriptive columns?

A follow-up question to this one Once I introduce some more complexity in my table, I'm seeing empty rows where no group-subgroup combination exists. Could those be remove? I'm also wanting to add a "descriptive" column which does not fit into the…
codesaurus
  • 81
  • 6
2
votes
1 answer

expss table with row percentage within nested variables in R

When using the expss package in R for creating tables, how does one get the row_percentages to be calculated within a nested variable? In the example below, I would like the row percentage to be calculated within each time period. Thus, I would like…
Steffen
  • 35
  • 5
2
votes
1 answer

Create data tables using SPSS in R

Using expss package I am creating cross tabs by reading SPSS files in R. This actually works perfectly but the process takes lots of time to load. I have a folder which contains various SPSS files(usually 3 files only) and through R script I am…
2
votes
0 answers

How to create CTABLES like SPSS in R?

Report Screenshot I'm converting a report in SPSS to R. In the final step I need to create a table which looks like this: I have tried using expss package and I can get table output but I'm not able to create variables having variables inside them…
Rohan Jain
  • 25
  • 6
2
votes
1 answer

error from data.table on shinyapps.io server but not locally

I'm developing my first shiny app -- it is working great locally, but produces an error when I publish to shinyapps.io: Error in data.table: object '.R.listCopiesNamed' not found. I have encountered this error locally before, but the issue was…
deschampst
  • 131
  • 7
2
votes
1 answer

R expss package: format numbers by statistic / apply different format to alternate rows

I'm exploring the expss package in order to change SPSS completely for R. My standard tabels show counts and percentages in the rows, sometimes also complemented with additional statistics. Is there a way to change the number format by statistic or…
2
votes
1 answer

label variable for stargazer extraction

I am using stargazer to extract some regression tables in latex. I would to know if it exists a way to label variables once for all without having to re-define it through "covariate.labels = ..." every time. I tried the library expss (and Hmisc),…
TeYaP
  • 303
  • 6
  • 21
2
votes
2 answers

How to create count and percentage tables and linegraphs with 1 independent variable and 3 dependent ones

I'm an R neophyte, and somehow this problem seems like it should be trivial to solve. But unfortunately, I haven't been able to do so after about three days of searching and experimenting. My data is in a form close to wideform: color agegroup …
Gil Williams
  • 359
  • 1
  • 3
  • 10
2
votes
1 answer

inaccurate percentages in expss table

I'm analyzing some survey data and using expss to create tables. One of our questions is about brand awareness. I have 3 types of brands: BrandA is a brand that a large subset of the sample sees, BrandB is a brand that a smaller (mutually…
deschampst
  • 131
  • 7
2
votes
1 answer

Sorting expss output table

I would like to generate an expss table with sorted frequency data, take the below example available online library(expss) data(mtcars) mtcars = apply_labels(mtcars, mpg = "Miles/(US) gallon", cyl =…
gfa2001
  • 227
  • 1
  • 2
  • 10
2
votes
1 answer

`expss` and `data.table` not playing well together

I am working with the expss package to produce banner tables for survey data, but I keep getting an error that doesn't come up a lot on Google: Error in data.table(cell_var, col_var, row_var) : object '.R.listCopiesNamed' not found. I've created…
deschampst
  • 131
  • 7
2
votes
1 answer

Get value from cell in Shiny DataTable

I have this DataTable in Shiny and I would like to get the value from the first column in a variable textbox when I click an row. So in this case as seen in the screenshot, when I click this row, I would like to get Factuur Factuur in the place…
George
  • 73
  • 4
  • 15
1 2
3
9 10