installr (version 0.21.3)

up_folder: Performs "up-level" on a folder string

Description

Gets a character vector of folder strings and returns the same vector after removing the end of the folder path.

Usage

up_folder(FOLDER, n = -1, ...)

Arguments

FOLDER

a character vector of folders

n

passed to n in function head

...

not used.

Value

The name of the file in the URL

Examples

Run this code
# NOT RUN {
up_folder(FOLDER = c("D:/R/R-3.0.1", "D:/R/R-3.0.2", "D:/R/R-3.0.3"))
# }

Run the code above in your browser using DataCamp Workspace