Re: [R] odfWeave repeats output

2011-08-12 Thread Rainer Stuetz
On Fri, Aug 12, 2011 at 11:10 AM, Chris Beeley chris.bee...@gmail.com wrote:

 I'm having a problem with odfWeave. I'm still testing it out, and have
 used both of these code chunks, which I copied off a blog:

 ...

 The really weird thing is that I have replicated the problem across
 two operating systems (dual boot on the same computer), windows 7
 64bit and Linux Mint 11 (which is Ubuntu, not sure which version I'm
 afraid). I've been unable to find anyone on any forums or anything
 with the same problem.

 Using R v2.13 on Windows, v 2.12 on Linux, was using RStudio but just
 tested it without (just in case) and it does the same thing.

 Any suggestions gratefully received.

You might try downgrading to an earlier version of the XML package
(e.g. version 3.2.0).
See this thread https://stat.ethz.ch/pipermail/r-help/2011-May/278068.html

HTH,
Rainer

__
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.


Re: [R] microsecond timestamp support

2011-05-01 Thread Rainer Stuetz
On Sun, May 1, 2011 at 15:33, Joel Reymont joe...@gmail.com wrote:

 Does R have support for microseconds in timestamps, e.g. when reading this in

 Time,Include,Kind,Duration
 2011-04-01 14:20:36.368324,Y,U,1.03238296509
 2011-04-01 14:20:35.342732,Y,C,0.0252721309662
 2011-04-01 14:20:34.337209,Y,R,0.00522899627686


See ?strptime:

  Specific to R is %OSn, which for output gives the seconds to 0 = n = 6
  decimal places (and if %OS is not followed by a digit, it uses the setting of
  getOption(digits.secs), or if that is unset, n = 3). Further, for strptime
  %OS will input seconds including fractional seconds. Note that %S ignores
  (and not rounds) fractional parts on output.


dat - read.table(textConnection(
'Time,Include,Kind,Duration
2011-04-01 14:20:36.368324,Y,U,1.03238296509
2011-04-01 14:20:35.342732,Y,C,0.0252721309662
2011-04-01 14:20:34.337209,Y,R,0.00522899627686'),
header=TRUE, sep=,)

R dat$Time - as.POSIXct(dat$Time, %Y-%m-%d %H:%M:%OS6)
R dat$Time
[1] 2011-04-01 14:20:36.368 2011-04-01 14:20:35.343
[3] 2011-04-01 14:20:34.337
R options(digits.secs=6)
R dat$Time
[1] 2011-04-01 14:20:36.368324 2011-04-01 14:20:35.342732
[3] 2011-04-01 14:20:34.337209
R class(dat$Time)
[1] POSIXct POSIXt

HTH,
Rainer

__
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.


Re: [R] eps file

2010-09-23 Thread Rainer Stuetz
On Thu, Sep 23, 2010 at 8:05 AM, KAYIS Seyit Ali s_a_ka...@yahoo.com wrote:

 I need to create eps file which is the required figure format
 of the journal that I want to submit a paper. I am able to
 create files in pdf or wmf format but not in eps format. Is
 there a way to convert pdf or wmf to eps? or alternatively, how
 can I create an eps file in R?

see ?postscript

 The postscript produced by R is EPS (_Encapsulated PostScript_)
 compatible, and can be included into other documents, e.g., into
 LaTeX, using '\includegraphics{filename}'.  For use in this way you
 will probably want to use setEPS() to set the defaults as
 horizontal = FALSE, onefile = FALSE, paper = special.

dev.copy2eps: for copying from screen to EPS.


Xpdf (http://www.foolabs.com/xpdf/) includes a pdftops utility for
converting PDF files to (Encapsulated) PostScript.

HTH,
Rainer

__
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.


Re: [R] Neural Network

2010-07-19 Thread Rainer Stuetz
2010/7/18 Arnaud Trébaol arnaud.treb...@mail.polimi.it:
 Hi all,

 I am working for my master's thesis and I need to do a neural network to
 forecast stock market price, with also external inputs like technical
 indicators.
 I would like to know which function and package of R are more suitable for
 this study.

 Thanks a lot for your response,
 Arnaud TREBAOL.

See also the following article in the current issue of the R Journal:

neuralnet: Training of neural networks
http://journal.r-project.org/archive/2010-1/RJournal_2010-1_Guenther+Fritsch.pdf


-Rainer

__
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.