Learn R Programming

bigstatsr (version 1.6.1)

sub_bk: Replace extension '.bk'

Description

Replace extension '.bk'

Usage

sub_bk(path, replacement = "", stop_if_not_ext = TRUE)

Value

String with extension '.bk' replaced by replacement.

Arguments

path

String with extension '.bk'.

replacement

Replacement of '.bk'. Default replaces by nothing.

stop_if_not_ext

If replacement != "", whether to error if replacement is not an extension (i.e. starting with a dot).

Examples

Run this code
path <- "toto.bk"
sub_bk(path)
sub_bk(path, ".rds")

Run the code above in your browser using DataLab