Learn R Programming

dateutils (version 0.1.5)

count_obs: Count observations

Description

Return the number of finite observations in `x`

Usage

count_obs(x)

Arguments

x

data vector

Value

The Number of observations

Examples

Run this code
# NOT RUN {
count_obs(c(1,3,5,7,9,NA)) # 5
# }

Run the code above in your browser using DataLab