R/char.R

Defines functions char

Documented in char

#' char returns the characters defined by the codes
#' @title Return the characters defined by the codes
#' @author Based on this blog: http://datadebrief.blogspot.com/2011/03/ascii-code-table-in-r.html
#' @return A string with characters defined by the codes
#' @param n The code to be used to return a character
#' @description Return a string with characters defined by the codes.
#' @family Characters
#' @examples
#' char(65:75)
#' char(unlist(tapply(144:175, 144:175, function(x) {c(208, x)})))
#' @export


char <- function(n) {rawToChar(as.raw(n))}

Try the HelpersMG package in your browser

Any scripts or data that you put into this service are public.

HelpersMG documentation built on Oct. 5, 2023, 5:08 p.m.