2
$\begingroup$

Is there a possibility to disable the initial message (1) when creating a sequence with seqdef library(TraMineR) ?

(1) this message

 [>] coding void elements with '%' and missing values with '*'
 [>] 6 distinct states appear in the data: 
     1 = M
     2 = MC
 ...

For instance,

LCS.ex <- c("S-U-S-M-S-U", "U-S-SC-MC", "S-U-M-S-SC-UC-MC")
seqdef(LCS.ex)

Subsequently, is it possible to use TraMineR functions (such as seqdist or seqLLCS) without using a TraMineR object ?

$\endgroup$
2
$\begingroup$

You can suppress the messages with suppressMessages

suppressMessages(seqdef(LCS.ex))

As for your second question: seqdist and seqLLCS work only for state sequence objects. So, you need to transform your data in such a object.

$\endgroup$
1
  • $\begingroup$ so embedded as seq = suppressMessages(seqdef(LCS.ex)). Thanks $\endgroup$ – giac Jan 10 '17 at 11:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.