Learn R Programming

ProfessR (version 2.4-1)

ridNA: Replace NA with somehting else

Description

Replace NA with somehting else

Usage

ridNA(z, temp)

Value

vector with NA's replaces

Arguments

z

vector

temp

replacement

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Examples

Run this code

z = 1:10
z[z>8] = NA

ridNA(z, 0)



Run the code above in your browser using DataLab