is.greekmath: Determining if a UTF-8 string is within the greekmath Unicode...

Description Usage Arguments Value Author(s) Examples

View source: R/utf8latex.R

Description

is.greekmath returns TRUE if a UTF-8 string is within the greekmath Unicode ranges

Usage

1
is.greekmath(utf8char)

Arguments

utf8char

UTF-8 string

Value

logic

Author(s)

Jose' Gama

Examples

1
2
3
4
5
fileIn<-system.file('extdata/Textgreekmath.txt', package='utf8latex')
# read a UTF-8 string from a file
x <- scan(file=fileIn,'character', fileEncoding='UTF-8')
# check if every character is within the greek-math Unicode ranges
lapply(unlist(strsplit(x,'')), is.greekmath)

utf8latex documentation built on May 30, 2017, 4:30 a.m.