Description Usage Arguments Details Value Author(s) See Also Examples
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
.
1 | batch.possSpells.fnc(fn = list.files(pattern = ".*\\.rda"))
|
fn |
A vector containing the names of the files that contain the object |
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.
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.
Antoine Tremblay, IWK Health Center, <trea26@gmail.com>
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.