Hai, I have change it to these, but error and I couldn't fix it. Do you have any idea why?
file <- system.file("D:\\FYP\\image\\Cropped Images\\user61", "forgerUser61.xlsx", package = "xlsx") wb <- loadWorkbook("forgerUser61.xlsx") sheets <- getSheets(wb) sheet <- sheets[["all"]] res <- readRows(sheet, startRow=4, endRow=5, startColumn=2, endColumn=3) >Error in readRows(sheet, startRow = 4, endRow = 5, startColumn = 2, endColumn = 3) : >attempt to apply non-function -- View this message in context: http://r.789695.n4.nabble.com/write-data-using-xlsReadWrite-tp4629825p4630231.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.