jinseob2kim / jstable
Showing 2 of 5 files from the diff.

@@ -57,6 +57,13 @@
Loading
57 57
    stop("Please select only 1 strata")
58 58
  }
59 59
  
60 +
  vars.ex <- names(which(sapply(vars, function(x){!(class(data[[x]]) %in% c("integer", "numeric", "factor", "character"))})))
61 +
  
62 +
  if (length(vars.ex) > 0){
63 +
    warning("Variables other than numeric or factor types are excluded.")
64 +
    vars <- setdiff(vars, vars.ex)
65 +
  }
66 +
  
60 67
  
61 68
  res <- tableone::CreateTableOne(vars =vars, strata = strata, data = data, factorVars = factorVars, includeNA = includeNA, test = test, 
62 69
                       testApprox = testApprox, argsApprox = argsApprox,

@@ -45,6 +45,13 @@
Loading
45 45
  if (length(strata) != 1){
46 46
    stop("Please select only 1 strata")
47 47
  }
48 +
  
49 +
  vars.ex <- names(which(sapply(vars, function(x){!(class(data$variables[[x]]) %in% c("integer", "numeric", "factor", "character"))})))
50 +
  
51 +
  if (length(vars.ex) > 0){
52 +
    warning("Variables other than numeric or factor types are excluded.")
53 +
    vars <- setdiff(vars, vars.ex)
54 +
  }
48 55
49 56
  
50 57
  res <- tableone::svyCreateTableOne(vars =vars, strata = strata, data = data, factorVars = factorVars, includeNA = includeNA, test = test, 
Files Coverage
R 84.65%
Project Totals (13 files) 84.65%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading