R/excel2rdata.R

Defines functions excel2rdata

Documented in excel2rdata

excel2rdata <- function(file.align = 'alignment.xlsx', null.tokens = TRUE, len = len)
{
fg = c()
#wb = loadWorkbook(file.align)
for(sn in 1 : len)
{
df1 <- read.xlsx (xlsxFile = file.align, sheet = sn)
df1 = as.matrix(df1)
fg[[sn]] = df1
}
fg1 = ifelse(null.tokens, 'null', 'nolink')
save(fg, fg1, file = paste(file.align,'.RData',sep=''))
    
cat(paste(file.align,'.RData',' created','\n', sep=''))
    
}

Try the word.alignment package in your browser

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

word.alignment documentation built on May 1, 2019, 10:21 p.m.