new_data: Resample a data frame

View source: R/new_data.R

new_dataR Documentation

Resample a data frame

Description

This function resamples a column in a data frame. It first removes all NA's from the column, the samples that column without replacement. The resampled column then replaces the original column in the data frame.

Usage

new_data(Data, Column_Name = NA)

Arguments

Data

A data frame

Column_Name

The name of the column within the data frame that is to be resampled

Value

The same data frame provided, but with the specified column randomized.


RichieHonor/PermutateR documentation built on July 2, 2023, 2:07 p.m.