makePackets: makePackets

Description Usage Arguments Value Examples

Description

Turn a very large data frame into an ordered set of smaller ones.

Usage

1
makePackets(file, n, form, chosenDir)

Arguments

file,

a data frame. The data frame that needs converting into many files

n,

an integer. The number of mini data frames you'd like to make

form,

a string. Can take either '.rds' for R data files or '.csv' for ,csv files. Will determine the format of the smaller data frames.

chosenDir,

a string. Where would you like to put all these small data frames? The function will check if that directory exists, if not it will make it.

Value

does not return.

Examples

1
2
data <- matrix(runif(1,0,1), nrow = 1000, ncol = 20)
makePackets(data, 10, '.rds', './data')

stephdesilva/packetiseR documentation built on May 30, 2019, 12:04 a.m.