[R] readxl issue
t@ub|@ @end|ng |rom |mgprec|@|on@com
Wed Feb 5 20:09:01 CET 2020
I'm using readxl and dplyr to extract a specific cell from all worksheets in a directory.
All of these worksheets have the same physical layout.
Issue 1: Minus sign replaced by an X after data extraction.
files <- list.files(pattern="*.xls", full.names = FALSE)
avgs <- lapply(files, read_excel, sheet="Flow Data", range=("c9"))
avg_list <- as.data.frame(avgs)
trans_avgs <- t(avg_list)
Here are the first lines of the avgs.txt file.
The original Excel file contains
It appears that readxl is changing the - sign to an X.
Is there any feature in readxl which I can change so that readxl extracts the minus sign?
Issue 2: Duplicate dates contain additional characters
dates <- lapply(files, read_excel, sheet="Flow Data", range=("h14"))
dates_list <- as.data.frame(dates)
trans_dates <- t(dates_list)
Here are the first lines of the dates.txt file.
In Excel, this is what is recorded.
It appears that readxl is adding additional characters which are signaling duplicate dates.
Is there any feature in readxl which can I can change to eliminate these additional characters?
Some advice would be appreciated.
Statistician / Senior Quality Engineer
225 Mountain Vista Parkway
Livermore, CA 94551
T. (925) 273-1106
F. (925) 273-1111
E. tsubia using imgprecision.com
Precision Manufacturing for Emerging Technologies
The contents of this message, together with any attachments, are intended only for the use of the individual or entity to which they are addressed and may contain information that is legally privileged, confidential and exempt from disclosure. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this message, or any attachment, is strictly prohibited. If you have received this message in error, please notify the original sender or IMG Companies, LLC at Tel: 925-273-1100 immediately by telephone or by return E-mail and delete this message, along with any attachments, from your computer. Thank you.
More information about the R-help