Jamovi计算新变量总计,因为Sumif Cols具有文本?
在贾莫维工作。我有10 cols col1至Col10具有文字或空白。我想计算一个新的变量total_col,它仅计算了多少个COL包含文本。这是Sumif吗?在Jamovi Compecute面板中会是什么样?
working in jamovi. I have 10 cols col1 through col10 that either have text or are blank. I want to compute a new variable total_col that simply counts how many cols contain text. Is this a sumif? what would it look like in the jamovi compute panel?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
jamovi模块 rj 允许您执行R代码。以下代码将返回可以包含文本( targe 和 factor )的A class 的列数):
请注意,在R中,类是固定了数据框的每列,因此所有行的 can Can 包含文本的单元格数将相同。如果您想在单独的列中使用这些相同的条目,则应该 *做 *:
*未测试,只发现有一个用于使用R代码并提供R代码的Jamovi模块(希望您可以使用命名您将它们保存在下面)。
The Jamovi module Rj allows you to execute R code. The following code will return the number of columns with a class that can contain text (character and factor):
Note that in R the class is fixed per column of a dataframe, so the number of cells which can contain text will be the same for all rows. If you want to have these identical entries in a separate column though, this should* do:
* Not tested, only found that there's a Jamovi module for using R code and supplied the R code (hoping that you can address the underlying data with the name you saved them under).