Description Usage Arguments Details Value Author(s) See Also Examples
Simulate a data frame representing a questionnaire randomly generated with n observation on a survey with questions including missing values. The aim of this data is to test the methods of dfexplore package based on different kind of data but should be used
1 2 | simulate_dataframe(nsubjects = 100, nquestions = 10,
includeMatrix = FALSE)
|
nsubjects |
integer - number of subjects in the data frame |
nquestions |
integer - number of questions in the data frame |
includeMatrix |
boolean - does the answer of the questions should be included as a matrix in the final data frame (see details) |
Data frames may have components matrices components. This is unusual, but technically allowed and necessary in some cases. Methods of dfexplore package have to deal with this.
A data.frame wih nquestions + 8 columns and nsubjects observations with various data classes. It should countain a matrix component if includeMatrix = TRUE.
Joris Muller
There is already some simulated data frames included as example_df
1 2 3 | simulated <- simulate_dataframe(nsubjects=200)
str(simulated)
dfplot(simulated)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.