random_rows: Function to get a vector of random rows for data frame...

Description Usage Arguments Value Author(s)

Description

Use set.seed before the function to make the random number generation reproducible.

Usage

1
random_rows(df, fraction = 0.8)

Arguments

df

Data frame to get random rows from.

fraction

Fraction of df to sample.

Value

Integer vector.

Author(s)

Stuart K. Grange


skgrange/normalweatherr documentation built on May 23, 2019, 9:34 a.m.