Learn R Programming

do (version 2.0.0.1)

delete_up: Delete and Move Up the Rest Values

Description

Delete and Move Up the Rest Values

Usage

delete_up(x, delete)

Value

dataframe or matrix

Arguments

x

dataframe or matrix

delete

one delete object

Examples

Run this code
a=c(1,NA,7,NA)
b=c(NA,2,2,7)
d=c(1,NA,40,7)
df=data.frame(a,b,d)

delete_up(x = df,delete = NA)

Run the code above in your browser using DataLab