Learn R Programming

Xmisc (version 0.2.1)

valid.mode: Return a valid mode given digits

Description

Return a valid mode given digits

Usage

valid.mode(mode, digits = 4)

Arguments

mode
character, the mode of the path, see dir.create.
digits
numeric, either 3 or 4.

Value

mode

Examples

Run this code
valid.mode("777",4)
valid.mode("0777",3)

Run the code above in your browser using DataLab