Description Usage Arguments Examples
Tests that object is of class surveyor object.
1 | is.surveyor(x)
|
x |
Object to be tested |
1 2 3 4 5 6 7 | library(surveydata)
sdata <- data.frame(Q1=c(11, 12), Q4_1 = c(1,2), Q4_2=c(3,4), Q4_3=c(5,6))
varlabels(sdata) <- c("Question 1", "Question 4: red", "Question 4: yellow", "Question 4: blue")
sdata <- as.surveydata(sdata, renameVarlabels=TRUE)
s <- as.surveyor(sdata, crossbreak=list(breaks=factor(c("aa", "bb"))), weight=c(1,1))
is.surveyor(s) # TRUE
is.surveyor("String") #FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.