Description Usage Arguments Details Value Author(s) See Also Examples
Returns information about the number of valid X-Y pairs.
1 | valid.pairs(x, y)
|
x |
A vector of the same length as 'y' |
y |
A vector of the same lenght as 'x' |
This function returns the total number of X-Y pairs, the number of X-Y pairs with at least one of the pairs missing a value, the number of X-Y pairs without either pair missing, and the percentage of total pairs that do not have either pair missing. Called by the Profile.r function.
A list containing the following:
Tot |
The total number of X-Y pais |
Miss |
The total number of X-Y pairs with at least one value missing |
Valid |
The total number of X-Y pairs with neither value missing |
Pct |
The percentage of X-Y pairs with neither value missing |
Ryne A. Sherman
1 2 3 4 5 6 7 8 9 10 | # Making some data
x.vect <- rnorm(100, m=0, sd=.5)
y.vect <- rnorm(100, m=0, sd=.5)
#checking valid pairs
valid.pairs(x.vect,y.vect)
#making some missing data
x.vect[1:5] <- NA
y.vect[95:100] <- NA
#now checking valid pairs
valid.pairs(x.vect,y.vect)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.