powered by
The function removes from the set of possible profilesa prof the unobserved profiles (i.e. profiles with associated frequencyies equal to zero). It returns an object of class S3 wprof comprising the remaining profiles and their frequencies.
prof
wprof
obsprof(prof) # S3 method for wprof obsprof(prof)
object of S3 class wprof.
# NOT RUN { prf <- var2prof(varlen = c(3, 3, 3)) prf$freq <- sample(c(0, 1), 3*3*3, replace = TRUE) prf <- obsprof(prf) plot(prf, shape = "equispaced") # }
Run the code above in your browser using DataLab