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
1
vote
1 answer

how to further refine expss table format?

I am trying to improve my table design using expss. My current design is shown below using the following code: library(expss) # bogus example data x<-structure(list(visits= structure(c(17, 2, 23, 1, 21), label = "Total # Home Visits", class =…
Ben
  • 1,113
  • 10
  • 26
1
vote
0 answers

Package expss - function f not found

Function f described on page 20 of reference manual "Package expss" on Cran. data(mtcars) var_lab(mtcars$am) = "Transmission" val_lab(mtcars$am) = c(automatic = 0, manual=1) ## Not run: plot(f(mtcars$am)) ## End(Not…
MarkWebb
  • 59
  • 4
1
vote
1 answer

How to display results from only select subgroups + the whole data frame in an expss table?

Apologies for what is a pretty basic question... I am loving using the expss package for table creation, but am having trouble working through some of the output display. Specifically, I have a situation where my data frame contains a grouping…
Keith Burt
  • 33
  • 5
1
vote
1 answer

How do you combine multi level statistics into one table?

This is a follow-up question to this one. Reworded: Building on the previous dataset, name is now important for my summary statistics because there are multiples of some animals with different names. Instead, we can still carry a descriptive…
codesaurus
  • 81
  • 6
1
vote
1 answer

How do you remove the cell label from your table?

I'm trying to leverage expss to automate some reporting currently done in Excel via R. I'm generally needing to summarise a lot of values across some grouping (rows) relative to some fields (columns). I'm finding it difficult to get rid of the cell…
codesaurus
  • 81
  • 6
1
vote
2 answers

R shiny app works locally, but after deployment, I get an error with I believe data.table: object 'CcopyNamedInList' not found

Unfortunately, my code is not shareable since it is for a company project, but I'm completely lost with this error. I've uninstalled and reinstalled data.table and still no fix. The weird thing is that I would think this error would occur locally as…
Jdev
  • 110
  • 7
1
vote
0 answers

How to change column names for mrset in R?

I am trying to create crosstabs I have a dataframe in which I have multiple select questions. I am importing the data frame from SPSS file using foreign and expss package. I am creating the multiple select questions using the mrset function. Here's…
1
vote
1 answer

Skip "zero" level of dichotomous variables in expss tables

I want to create a summary table for some dichotomous variables using the expss package. Since the variables are dichotomous, one of the two levels would the sufficient to "show the picture". I tried to use the function tab_net_cell, but was not…
R learner
  • 101
  • 7
1
vote
1 answer

Labels not parsed in Expss for loop

I'm new to R and trying to explore my variables by groups and i'm using a for loop to pass all suiting variable names under expss. Here is an reproducible example : require(expss) require(dplyr) colnoms <- as.data.frame(HairEyeColor)…
1
vote
1 answer

Create a crosstab in R using tab_cells that shows NA values

I'm trying to create a set of crosstabs in R using the tab_cells command in the expss package that shows me counts, the total, and my NAs. I can't get it to give me NAs. I've tried using na_if and tab_mis_val and I've tried doing it using the cro…
Carley
  • 63
  • 6
1
vote
2 answers

How do you compare means row-wise for the same ratings object in the R expss package?

I have repeated measures data with two ratings (reliable and fast) repeated on two different objects, (each survey respondent rates each object using the same two ratings measures). I would like to have two columns, one for object 1 and one for…
CK7
  • 229
  • 1
  • 11
1
vote
4 answers

How to run a frequency table in R for a set of variables like you would say FREQUENCIES var1 TO var10 in SPSS?

I'm trying to run a set of frequency tables in R without having to write the code for every single variable. For example, using the mtcars data in SPSS I would so something like: FREQUENCIES mpg TO vs And it would give me the 8 frequency tables…
Carley
  • 63
  • 6
1
vote
1 answer

showing a table as is without any tab_stat_*()

As I am using expss to summarize my tables, I would like all other tables to look in the similar styling. So basically I have a dplyr summarized data frame and now I want to make it nicely formatted and labelled as expss style. This means I would…
BKS
  • 141
  • 1
  • 10
1
vote
1 answer

expss tab_pivot() not returning anything from inside a for loop

expss looks great for my purpose, but I am having a small problem with it. Try 1 (not working): When I use expss on a dataframe everything works fine, but then I want to subset the data frame and then call expss on each subset. To subset and call…
BKS
  • 141
  • 1
  • 10
1
vote
1 answer

R: expss package: possible to automate table generation?

I'm looking for a way to automate table generation using the expss package in an attempt to move from spss to R. I think this should be simple but I seem to miss something... I only define a few different tables based on the question type. Eg. the…