slice_df_by_nrow: This function is slicing data frame by declarated number of...

View source: R/slice_df_by_nrow.R

slice_df_by_nrowR Documentation

This function is slicing data frame by declarated number of rows and saving output 3 different declarative ways.

Description

This function is slicing data frame by declarated number of rows and saving output 3 different declarative ways.

Usage

slice_df_by_nrow(df, nrows = 100, to_file = "no", v_name = NULL)

Arguments

df

Data frame

nrows

Number of rows which each segment have to had (except last which contains reminders). Default 100.

to_file

Information if output should be written to csv, xlsx or pushed back as list of dataframes

name

Name of output file

Value

xlsx file/csv files/list of dfs in env

Examples

slice_df_by_nrow(df, nrows = 190, to_file = "no", v_name = "test")



kgryczan/KGMisc documentation built on Dec. 31, 2024, 7:21 a.m.