Displaying 20 results from an estimated 10000 matches similar to: "How to convert blanks to NA"
2007 Jun 09
2
problem with xlsreadwrite package
Hi friends,
I have installed R 2.4.0 in my pc. I have a file xls entitled dali following this directory:c://programfiles//R 2.4.0. Recently I have installed xlsreadwrite 1.3.2. but , when I wrote the following lines:
>library(xlsReadWrite)
>read.xls( file, colNames = TRUE, sheet = 1, type = "data.frame", from = 1, colClasses = NA )
I obtained from R console the following messages:
2012 Mar 15
2
Importing multiple worksheets from one Excle/ csv file into R
Dear R experts,
I am trying to import some data from some Excle files into R. My Excle file
contains about 50 sheets.
One solution I can think about is to convert my Excle file into csv file
first and then load data into R using 'read.csv'.
But it seems to me that 'read.csv' only supports reading one sheet (or 'one
file') each time, so that seems I have to create 50 csv
2008 Feb 26
3
using eval-parse-paste in a loop
R-helpers
I have 120 small Excel sheets to read and I am using
library(xlsReadWrite): one example below.
I had hoped to read sheets by looping over a list of numbers in their
name (eg Book1.xls, Book2.xls, etc).
I thought I had seen examples which used eval-parse-paste in this way.
However, I have not been able to get it to work..
1. is this a feasible approach?
2. if not
2012 Dec 04
6
leer .xlsm con read.xls
Buenas tardes usuarios de R.
Estoy tratando de leer un archivo excel con read.xls usando la siguiente
sentencia:
read.xls("resultados.xlsm",
colNames = TRUE,
sheet = 1,
type = "data.frame",
from = 1,
rowNames = NA,
colClasses = "character",
checkNames = TRUE,
dateTime = "numeric",
naStrings = NA,
stringsAsFactors = F)
Pero me da el siguiente error:
Error
2012 Dec 04
1
error reading xlsm file with read.xls
Dear all,
I cannot reading a .xlsm file using read.xls.
I executed:
read.xls("resultados.xlsm",
colNames = TRUE,
sheet = 1,
type = "data.frame",
from = 1,
rowNames = NA,
colClasses = "character",
checkNames = TRUE,
dateTime = "numeric",
naStrings = NA,
stringsAsFactors = F)
Error:
Call("ReadXls", file, colNames, sheet, type, from, rowNames, :
2009 Apr 07
4
Re ading Excel 5.0 files with RODBC?
Hi,
i'm trying to read some data from excel files but it seems that neither
xlsReadWrite nor sqlFetch (RODBC) doesn't like the format (Excel 5.0).
When i open the file in Excel and save it in a new format Excel 97 -2003
everything works fine.
Is it possible to use ODBC connection to open old format files, or i guess i
will have to open and save every file in Excel in new format, which
2007 Apr 18
10
importing excel-file
Dear R-experts,
It is a quite stupid question but please help me. I am very confuced. I
am able to import normal txt ant mat-files to R but unable to import
.xls-file
I do not understand the online help. Can please anyone send me the
corresponding command lines? The .xls-file is attached. In my file we
use commas for the decimal format (example: 0,712), changes might be
needed.
Thanks, Corinna
2006 Jun 20
3
hello Excel... (native/Package/BETA)
Dear list members
I am pleased to annonce that I have just finished a native Excel
reader/writer. It's wrapped up in two packages: either "xlsReadWrite" (open
source) or the slightly beefed-up "xlsReadWritePro" (shareware). Working
with Excel data is now as easy as writing read.xls and write.xls.
Some more details:
- Infos and download: http://treetron.googlepages.com
-
2010 Sep 06
0
xlsReadWrite v1.5.2
Natively read and write Excel (.xls) files. Supports Windows 32-bit only (atm).
A new version has been released:
-- changes --
o read.xls
- new arguments 'checkNames'
- recognize NA values according to a new 'naStrings' argument
- recognize NaN values
- recognize 'true', 'false' (not case-sensitive) as logical when
determing a class for data.frame column;
2010 Sep 06
0
xlsReadWrite v1.5.2
Natively read and write Excel (.xls) files. Supports Windows 32-bit only (atm).
A new version has been released:
-- changes --
o read.xls
- new arguments 'checkNames'
- recognize NA values according to a new 'naStrings' argument
- recognize NaN values
- recognize 'true', 'false' (not case-sensitive) as logical when
determing a class for data.frame column;
2008 Mar 25
5
reading Excel file
Hi R,
I have an excel file in which the third column is "date" and others are
"character" and "numeric".
Number of columns are 12
If I use this to read the file in R: x = read.xls("D:\\file.xls")
The problem is that my date column is read in julian dates.
So I am using: x = read.xls("D:\\file.xls",
2012 May 13
4
write data using xlsReadWrite
Hai, I'm trying to write these var output data from these codes inside excel
file. My directory to store the data is
/D:\FYP\image /
but receive an error message :
/Error in write.xls(mydata, "D:\\FYP\\image.mydata.xls") :
object 'mydata' not found/
these are my codes, can you help give an advice or idea with my problem:
/library("biOps")
2010 Oct 13
1
RODBC: forcing a special column to be read in as character
Dear R-users,
I am working with R version 2.10.1 and package RODBC Version: 1.3-2 under windows.
Say I have a table "testtable" (in an Access data base), which has many different columns, among them a character column "X" with "integer-like" data as "0012345".
Using sqlFetch, I'd like to assure that column X is read in as a character variable. So what
2010 Nov 29
0
Updates for xlsReadWrite (1.5.3) and xlsReadWritePro (1.6.1/3)
The xlsReadWrite[Pro] packages allow to natively read/write Excel files (.xls)
on the Win 32-bit platform.
About a week ago new package versions have been released:
* xlsReadWrite 1.5.3 is available at CRAN (for R2.11/2.12) and from
www.swissr.org/download (binary builds for R2.9 - R2.12)
* xlsReadWritePro 1.6.3 is available from www.swissr.org/download
(binary builds for R2.9 - R2.12)
* (the
2007 Apr 27
0
[ANN:] new package xlsReadWrite*Pro*: announce + update.
I am happy to announce that a new version of xlsReadWritePro is available.
xlsReadWritePro natively reads and writes Excel files (v97 - 2003) on
Windows. The pro version is more powerful than the free version but,
beeing a small company, we ask you to support our development and
maintenance effort.
The following capabilities have been added (compared to xlsReadWrite):
? in-memory objects
2011 Oct 11
5
help to ... import the data from Excel
Hi every one ,,,,
i have problem in R program to import the data from excel ,
I have done the following:
1. install.packages("xlsReadWrite")
2. library(xlsReadWrite)
3. z<- read.xls("ReadXls",LTS,colNames=FALSE,sheet,type,form,rowNames=FALSE)
and i got on the result:
Error in read.xls("ReadXls", LTS, colNames = FALSE, rowNames = FALSE) :
object
2010 Jul 07
1
xls.getshlib() error in xlsReadWrite package under W7
Dear all,
I installed xlsReadWrite package under Windows 7, and got error when trying
to run xls.getshlib().
Please, see the errors below:
> require(xlsReadWrite)
Loading required package: xlsReadWrite
xlsReadWrite version (cran shlib)
Copyright (C) 2010 Hans-Peter Suter, Treetron, Switzerland.
!! Your installation contains the cran placeholder shlib (dll/so).
Please get the regular shlib
2007 Oct 09
1
Read in date fomat while colClasses="character"
Hi R users,
I am using xlsReadWrite to read a particular excel file. In one of the
columns I have dates ( say col=5). Now date column is read by default as
numeric. So I used dateTimeAs= "isodatetime". This enables reading in
the date format. However in the earlier column (say col=1) I have data
which however starts from row 10. So to read data from column one I use
2007 Apr 27
0
Update of xlsReadWrite package
The (*windows only*) xlsReadWrite package has been updated and the new
version is available on CRAN.
xlsReadWrite natively reads and writes Excel files (v97 - 2003).
o Changes from v1.1.1 to v1.3.3 (versions between never really published)
- ROWNAMES-support also for matrices (not only for data.frame)
- explicit rowNames argument in interface.
(stimulated by email Adrian Dusa)
-
2009 Feb 23
3
Dates and times from Excel
I have used xlsReadWrite to read data from an Excel spreadsheet.
I had a problem with converting times of the day so that I could create
POSIXct date-time objects. I was wondering if there was a better
solution.
Excel stores times of the day as fractions of a day so I wrote a function
to convert the fraction to a number of seconds, extract the hours, minutes
and seconds and output it in ISO