Description Usage Arguments Examples
This function takes a data.frame that has NA's in its first row from when it got populated, removes that first row and returns a cleaned response, OR tells you that the response was empty to begin with.
1 | cleanResponse(responsetable, rm.rows = 0)
|
responsetable |
A data.frame that needs to be cleaned. |
rm.rows |
The rows to remove, if needed. Default is first row. |
1 2 3 4 5 6 7 | ## negative response
sampleresponse <- data.frame(col1=NA, col2=NA)
#cleanResponse(sampleresponse,1)
## positive response
sampleresponse <- rbind(sampleresponse, c(1, 2), c(3, 4))
cleanResponse(sampleresponse, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.