from2colTo3: Create a file with tag data from two to three colums

Description Usage Arguments Value Author(s) Examples

View source: R/utf8latex.R

Description

from2colTo3 reads a file with 2 columns (hex, tag) and saves it as 3 columns (hex, utf8, tag)

Usage

1
from2colTo3(file2cols, file3cols)

Arguments

file2cols

UTF-8 file with tags in two columns

file3cols

UTF-8 file with tags in three columns

Value

character

Author(s)

Jose' Gama

Examples

1
2
3
4
5
6
7
## Not run: 
x <- matrix( c('000BC', '\frac14','000BD','\frac12','000BE','\frac34'),3,2,byrow=FALSE)
write(x, file='2cols.tab',ncolumns =2, sep ='\t')
from2colTo3('2cols.tab', '3cols.tab')
read.table('3cols.tab')

## End(Not run)

Example output

     V1       V2      V3
1 000BC <U+00BC> \frac14
2 000BD <U+00BD> \frac12
3 000BE <U+00BE> \frac34

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