Consider the following code:
library(PST)
library(TraMineR)
library(RCurl)
x <- getURL("https://gist.githubusercontent.com/aronlindberg/c79be941bc86274f4526705600962789/raw/6e3ee8d464c97f1c26631d604de41ca97dc22159/sequence_data.csv")
data <- read.csv(text = x)
data.seq <- seqdef(data[,2:ncol(data)], missing = "%")
pstree(data.seq)
This generates the following error message:
Error in names(StCol) <- A : attempt to set an attribute on NULL
I cannot see any reason why this should generate an error. The data works fine with multiple TraMineR
functions, e.g.
seqient(data.seq)
What is the reason for this error message? How can I overcome it?