batch.possSpells.fnc: Batch processing function for possSpells.fnc.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Load each FILE_NAME.rda file whose name appears in the vector file, loads the file and passes the object words contained in the file to the function possSpells.fnc.

Usage

1

Arguments

fn

A vector containing the names of the files that contain the object words, which will be loaded and passed to possSpells.fnc. If you do not supply an object name to the fn argument ofthe function, the names of all FILE_NAME.rda files existing in the current directory will be supplied to batch.possSeplls.fnc.

Details

The files have to be in .rda format and must contain an object named words, which is a vector of words in Sampa phonetic script.

Value

Saves (i) a log of the process activities to a FILE_NAME_log.doc file and (ii) all of the words' possible spellings to a FILE_NAME.doc file.

Author(s)

Antoine Tremblay, IWK Health Center, <trea26@gmail.com>

See Also

possSpells.fnc

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# create and save first word list
words<-c("d_ZZZ_s_t_I_t",
         "j_u_l_o",
         "f_A_m"
)
save(words,file="some.words.rda")

# create and sve second word list
words<-c("ZZZ_k_s_@_d_O_f_t",
	 "b_E_N",
	 "b_r_I_l_t"
)
save(words,file="other.words.rda")

# create and save third word list
words<-c("g_r_ZZZ_dZ",
         "k_e_v_I_t",
         "k_o_l_E_p"
)
save(words,file="more.words.rda")

# create and save fourth word list
words<-c("k_l_u_t_l",
	 "d_ZZZ_g_o_s_o",
	 "d_r_i_g_b_l_A_m"
)
save(words,file="yet.more.words.rda")

# create the vector of file names
files=c("some.words.rda",
	"other.words.rda",
	"more.words.rda",
	"yet.more.words.rda"
)

# process the files
# The list of possible spellings for each 
# word list are saved as a '.txt' file 
# in the current directory, e.g., 'some.words.txt'.
batch.possSpells.fnc(fn=files)

AllPossibleSpellings documentation built on May 1, 2019, 7:50 p.m.