remove_empty_cols: Remove empty columns from a data.frame

View source: R/utils.R

remove_empty_colsR Documentation

Remove empty columns from a data.frame

Description

Useful to remove unmapped columns extracted from EcoTaxa, which are all full of NAs.

Usage

remove_empty_cols(x)

Arguments

x

a data.frame.

Value

The input data.frame with the columns that are full of NAs removed

Examples

x <- data.frame(a=c(1,NA), b=NA, c=c(NA, "foo"))
x
remove_empty_cols(x)

jiho/ecotaxar documentation built on Jan. 16, 2024, 12:26 a.m.