clean_dfo_fields: clean_dfo_fields

View source: R/clean_dfo_fields.R

clean_dfo_fieldsR Documentation

clean_dfo_fields

Description

This function facilitates the dropping of fields from a dataframe. It was built for specific fields in MARFIS that I never wanted (i.e. CUSER, CDATE, UUSER, UDATE), but can also drop other fields easily.

Usage

clean_dfo_fields(df = NULL, customCrap = NULL)

Arguments

df

default is NULL. This is the dataframe you want to drop fields from.

customCrap

default is NULL. This is a vector of fields you want removed from your dataframe.

Value

returns a data.frame without the columns CUSER, CDATE, UUSER, UDATE, or any of the ones specified in customCrap.

Author(s)

Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca


Maritimes/Mar.utils documentation built on Feb. 12, 2024, 11:38 p.m.