Learn R Programming

SciencesPo (version 1.3.7)

fillup: Identify columns with at least one NA value and fill with the mean value

Description

Identify columns with at least one NA value and fill with the mean value

Usage

fillup(x)

Arguments

x
a data.frame

Value

  • A message indicating whether any column in x has missing data and filling missings with the mean of the valid cases.

encoding

UTF-8

Examples

Run this code
view(ssex)
    fillup(ssex)

Run the code above in your browser using DataLab