makeIndvFiles: makeIndvFiles

Description Usage Arguments Value Examples

Description

This function does the heavy lifting for the makePackets function. It builds all the individual files from the larger data frame.

Usage

1
makeIndvFiles(file, n, form, j, rows, numberFile, 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.

j,

the number of rows in the big data frame.

rows,

the number of rows in each smaller data frame.

numberFile,

the file number. The smaller data frames are built sequentially so they can be rebuilt into one data frame in the same order they came in.

chosenDir,

a string. Where would you like to put all these small data frames? Built by makePackets().

Value

doesn't return anything.

Examples

1
makeIndvFiles(file, 10, '.csv', 1000, 101, 2, './data')

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