cleanResponse: Internal Function To Clean ResponseTable

Description Usage Arguments Examples

Description

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.

Usage

1
cleanResponse(responsetable, rm.rows = 0)

Arguments

responsetable

A data.frame that needs to be cleaned.

rm.rows

The rows to remove, if needed. Default is first row.

Examples

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)

ecology-rocks/disperseR documentation built on May 15, 2019, 7:58 p.m.