bytes_converter: bytes converter of a text file ( KB, MB or GB )

Description Usage Arguments Value Examples

View source: R/utils.R

Description

bytes converter of a text file ( KB, MB or GB )

Usage

1
bytes_converter(input_path_file = NULL, unit = "MB")

Arguments

input_path_file

a character string specifying the path to the input file

unit

a character string specifying the unit. One of KB, MB, GB

Value

a number

Examples

1
2
3
library(textTinyR)

# bc = bytes_converter(input_path_file = 'some_file.txt', unit = "MB")

textTinyR documentation built on Oct. 26, 2021, 9:06 a.m.