Displaying 20 results from an estimated 11000 matches similar to: "Excel export date format"
2010 Jul 29
4
reading dates in Excel into R
I am reading dates in Excel2007 into R.
Here are the functions I used:
library(RODBC)
channel<-odbcConnectExcel2007("myfile.xlsx")
tmp<-sqlFetch(channel,"1",as.is=T)
The dates in myfile.xlsx are all in this format: mm/dd/yyyy. But when I read it to R, some columns look like "yyyy-mm-dd 00:00:00", some columns look like "yyyy-mm-dd", and some
2009 Sep 11
1
format (?) problems with data imported from postgres
Good day,
I read some data from a PostgreSQL database by a following script:
library(Rdbi)
library(RdbiPgSQL)
# conn becomes an object which contains the DB connection:
conn <- dbConnect(PgSQL(), host="localhost", dbname="BVS",
user="postgres", password = "*******")
query_duj_kal <- dbSendQuery(conn, "select zdroj as well, cas as date,
fe2,
2004 Feb 14
2
converting data to date format
Dear all,
I import my data from a csv-file containing one row with date-entries. How
can I tell R to treat this data as dates?
I've tried to bring it in character-format (as.charachter()) followed by
as.POSIXlt() but I get an error message, that the character string is not in
a standard unambiguous format, although the date is of format yyyy-mm-dd
(what is standard format according to R
2011 Nov 07
1
Problema with Excel files
Hi,
I have a Excel file with three spreadsheets: PlanA, PlanB
and PlanC.
I'm trying to read the three spreadsheets and then adding
them together.
But, when I try read the PlanA there is an error message:
rm(list=ls())
setwd('C:/Test/Dados/Teste')
require(RODBC)
Arquivo = odbcConnectExcel('T070206_1347.xls')
(Geral = sqlFetch(Arquivo, 'PlanA'))
(Lactacao =
2010 Oct 18
7
excel parser (preferably perl)?
I'm getting tired of converting spreadsheets that someone else updates
to csv so my perl scripts can push the data into a mysql database. Is
there a better way? I haven't had much luck with
perl-Spreadsheet-ParseExcel (and find it odd that yum prefers the .32
version from epel over .57 from rpmforge anyway). Is the current CPAN
version better? Or the equivalent java tools? Or
2012 Sep 04
2
How can I export a big data.frame to excel 2010 - file.xlsx?
Hi,
I need some help to export a data frame with 83 rows and 1411 colums. I have
used the package RODBC until now. But now, I have 1411 colums that I can't
send to the old excel. If anybody knows a package to convert my data frame
in xlsx tell me!
Thanks for help in advance!
Pamela Botrel
--
View this message in context:
2013 Feb 08
2
Problem reading dates from Excel
I'm using the read.xls function from gdata package to read one Excel file,
like the example below:
library(gdata)
my_file <- '/Users/Desktop/Project.xlsx'
valores <- read.xls(my_file)
The problem is: one of the columns at the Excel file holds date information
like 1-Jan-13, 5-Jan-13, 25-Jan-13. At Excel these information are treated
as dates. When I read the file into a
2006 May 03
6
sql server, date and time
Hey there all,
Is there some way to tell rails or sql server to ignore the time in a
datetime field when doing a comparison?
For example, if I do something like
select * from users where registration_date = ?, @date
where @date might equal some user input like ''03/14/2006''
The result is nothing returned, because in my tables the datetime
field looks like this:
3/14/2006
2012 May 01
2
How to Export an R outcome to an Excel Spreadsheet
Hello R community,
I basically created a normal distribution with mean 2500 and standard
deviation = 450 with a sample of size 50 and assigned that to a variable
named genvar2 with the following command:
genvar2<-rnorm(mean=2500, sd=450, n=50)
Now, the output of genvar2 generates de following:
[1] 2478.126 2671.259 2163.879 2440.796 2702.234 1871.514 2525.127 2830.688
[9] 2704.148 3464.478
2004 Jul 15
3
Important note for AGI with PHP newbies
I say this note is important only because I (a AGI PHP newbie) was
tormented by this problem for many an hour, even though I'm sure it's
documented somewhere or obvious to more experienced users.
So as I was experimenting with AGI in PHP scripting I was baffled by why
Asterisk was properly receiving AGI commands written to stdout but
always returning "510 invalid command" to the
2012 Jul 27
4
Separating Columns in Excel Export from R
Hello -
When I export my files using the write.table command and name the file.xls
and use the sep="/t" to try and separate the columns in excel, everything
just stays in one column. how do i get them all into separate columns (it
did this before but i can't figure out what's different between this time
exporting and other times when i enter the same thing)
example:
>
2009 Jun 03
4
Excel Export in a beauty way
Hallo all,
I`ve read a lot of things in this forum about an Excel export via R. It is
no problem to export my data frames via write.table or write.xls (xls or
csv), but some things are not very convenient for me: I always have to
adjust the column with to see all the numbers or the text and there is no
frame between the cells. And I missing the possibility to make some headers
bold or coloured.
2012 Dec 15
3
Cannot build custom locale with utf-8 charset
I am trying, without success, to compile a custom locale for the utf-8
character set. I have issued this command:
localedef --no-archive -f UTF-8 -i
/usr/share/i18n/locales/en_CA at yyyy-mmm-dd en_CA at yyyy-mmm-dd.utf8
which produces the requisite files without reporting an error but
which none-the-less insists on using the iso-8859-1 charset:
LC_ALL=en_CA at yyyy-mm-dd locale charmap
2010 May 11
2
Problems plotting date and time column from excel using R
I am using R to read from an excel(csv) file. Within the excel file is a column with the date set that looks likes this:
53:40.2
and in the Insert function box it looks likes this:
9/21/2006 4:53:40 PM
I tired separating the time and date using the function below and then plotting again which fail to read properly
=TEXT(B2,"hh:mm:ss") and =TEXT(B9,"mm/dd/yyyy")
The
2013 Sep 26
2
Read shortcuts of MS Excel files through R
Dear Rxperts,
Through Windows OS, I created shortcuts (paste as shortcut) to excel
spreadsheets ( with "xlsx" as the file extension). I wasn't able to read
the shortcuts through R and using "read" functions of "xlsx" package.
exf <- "a1.xlsx.lnk"
> read.xlsx(exf,1)
Error in .jcall("RJavaTools", "Ljava/lang/Object;",
2010 Jan 19
4
how to open excel 2007 (.xlsx) file in R
i am unable to open a file which is saved as .xlsx format in R . The file
contains approximately 1,50,000
rows. So I m not able to save it as csv file.Please suggest ways to open
this file
--
View this message in context: http://n4.nabble.com/how-to-open-excel-2007-xlsx-file-in-R-tp1017273p1017273.html
Sent from the R help mailing list archive at Nabble.com.
2010 Feb 23
5
export tables to Excel files
Dear R users,
I've just posted a similar question about Illustrator.
This time I would like to export the results of my statistic tables and
my dataframes into Excel files.
Up to now I've used write.csv(), but I have to resave every file in .xls
in Excel.
I would like to know if there is a function or package to export
directly into *.xls.
I have found xlsReadWrite which would be
2012 Dec 13
2
How to create multiple country's data into multiple sheets of one excel
HI,
I have large dataset of many countries. I have written the program to run through each country to generate one output for each country. I want to put the output like this:
one sheet has output for one country. How do I achieve it by r.
I have tried this:
library(xlsx)
write.xlsx(nnn, "vn.xlsx", sheetName="Sheet1") [1]
but when I change sheetName="Sheet2"
2011 Jun 14
3
Read in from multiple Excel wksheets
I?ve got an Excel workbook with about 30 worksheets. Each worksheet
has 10000 rows of data over 30 columns.
I?d like to read the data from each worksheet into a dataframe or
matrix in R for processing. Normally, I use read.csv when interacting
with Excel but I?d rather manipulate a multisheet workbook directly
than set about splitting the original workbook and saving down each
part as a csv.
2009 Nov 18
3
Re ading multiple Excel 2007 files with a loop
I have several hundred Excel 2007 data files in a folder. I would like to
read every file in a single given folder using a loop.
I have searched the FAQ, the forum archives here, other or older R boards
and the R Import / Export documentation, and have asked some very
knowledgeable R users without learning of a solution. I hope someone here
can help.
I understand that the most common