YAMOVI returns NA from function mean(..
Posted: Sun Nov 15, 2020 12:16 pm
Using the barplot.b.R und barplot.a.yaml below, YAMOVI returns NA.
# This file is a generated template, your changes will not be overwritten
BarplotClass <- if (requireNamespace('jmvcore')) R6::R6Class(
"BarplotClass",
inherit = BarplotBase,
private = list(
.run = function() {
mittel = mean(self$options$dep)
self$results$text$setContent(mittel)
})
)
---
name: Barplot
title: Test Barplot
menuGroup: Sonntag
version: '1.0.0'
jas: '1.2'
options:
- name: data
type: Data
- name: dep
title: Dependent Variable
type: Variable
# This file is a generated template, your changes will not be overwritten
BarplotClass <- if (requireNamespace('jmvcore')) R6::R6Class(
"BarplotClass",
inherit = BarplotBase,
private = list(
.run = function() {
mittel = mean(self$options$dep)
self$results$text$setContent(mittel)
})
)
---
name: Barplot
title: Test Barplot
menuGroup: Sonntag
version: '1.0.0'
jas: '1.2'
options:
- name: data
type: Data
- name: dep
title: Dependent Variable
type: Variable