pystr_rjust: Right justify a string.

Description Usage Arguments Value References See Also Examples

Description

Return str right justified in a string of length width. Padding is done using the specified fillchar (default is an ASCII space). The original string is returned if width is less than or equal to nchar(str).

Usage

1
pystr_rjust(str, width, fillchar = " ")

Arguments

str

A character vector.

width

An integer.

fillchar

A character string.

Value

A character vector.

References

https://docs.python.org/3/library/stdtypes.html#str.rjust

See Also

pystr_ljust

Examples

1
2
pystr_rjust("right", 10)
pystr_rjust("right", 10, "*")

pystr documentation built on April 15, 2017, 12:30 a.m.

Search within the pystr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.