traminer - Omit output when calling seqdef
问题描述
I wonder if it is possible to omit the output of the function seqdef
of TraMineR
. I do not see any verbose
argument or similar.
Thank you! Víctor
解决方案
您可能的意思是压制消息。所以只需suppressMessages(seqdef(...))
像下面的例子一样使用。请注意,这suppressMessages
是一个基本 R 函数,可以与其他函数一起使用,例如seqdist
或seqrep
。
library(TraMineR)
data(biofam)
biofam.lab <- c("Parent", "Left", "Married", "Left+Marr",
"Child", "Left+Child", "Left+Marr+Child", "Divorced")
biofam.short <- c("P","L","M","LM","C","LC","LMC","D")
biofam.seq <- suppressMessages(seqdef(biofam[,10:25], alphabet=0:7,
states=biofam.short, labels=biofam.lab))
推荐阅读
- ios - AudioKit ios AKSequencer Not Restarting Playback Accurately
- python - What is the purpose of base classes in Python if you're already referring to the implementation classes consistently
- c# - Prevent calling async method while the same instance is under process
- c++ - moveToThread vs deriving from QThread in Qt
- php - PHP发送链接以获取文件
- wordpress - 在 WordPress 网站的子页面中集成活动日历
- php - 如何将我的 htaccess 用于子目录而不是根目录?
- django - 如何预先选择 django forms.CheckboxSelectMultiple
- javascript - 为什么 console.log() 创建 /**id:4**/ 和 /**ref:4**/ 值?
- smartcard - nfc阅读器(PN532)的实际阅读速度是多少?