clean_data | R Documentation |
This function allows removing NA's from long format data into wide (or long) format data, even suporting repeated measures designs (i.e., with more than one subject per factor level).
clean_data(
data,
x,
y,
rowid = NULL,
paired = FALSE,
wide = FALSE,
character.only = FALSE,
...
)
data |
Data from which |
x |
Name for the grouping factor. Must be present in data |
y |
Name for the response variable. Must be present in data. |
rowid |
Name for the subject-id column. If null, then is assumed that
data is sorted for paired designs, creating one. So if your data is not sorted and you
leave this argument unspecified, the results can be inaccurate when there are more than
two levels in x and there are NAs present. Ignored if |
paired |
Logical that decides whether the experimental design is repeated
measures/within-subjects or between-subjects. The default is |
wide |
Logical to whether return a data.frame in wide format ( |
character.only |
Logical. checks whether to use the unevaluated expression or its
content (when TRUE), asumming is a character vector. Defaults to |
... |
Currently ignored. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.