NonNAs: NonNAs()

Description Usage Arguments Examples

Description

Returns the number of Non-NAs in an object by column (for data.frames and matricies) or just the number of Non-NAs (for all other objects). You may also set the type argument to "percent" to see the percent of Non-NAs.

Usage

1
NonNAs(data, type, digits)

Arguments

data

an object, can be a data.frame (see Non-NAs by column), matrix (also see Non-NAs by column), or a vector

type

"number" is the default, displaying the number of Non-NAs. You may also use "percent" to see the percent of Non-NAs

digits

the number of digits to round to when the type arguemnt is set to "percent"

Examples

1
2
3
4
5
6
To see the number of Non-NAs either in total or by column, depending on the
class of the object inputted:
\code{NonNAs(my_data)}

Same as above, but now looking at the percent of Non_NAs:
\code{NonNAs(my_data, type = "percent")}

jakesherman/jakemisc documentation built on May 18, 2019, 9:08 a.m.