OpCl works on xts objects but not on quantmod.OHLC objects. Is this a bug?
Example error:
x.Date <- as.Date("2003-02-01") + c(1, 3, 7, 9, 14) - 1
set.seed(1)
x <- zoo(matrix(runif(20, 0, 1), nrow=5, ncol=4), x.Date)
q <- as.quantmod.OHLC(x,c("Open","High","Low","Close"))
# error
OpCl(q)
#> Erro
Hi
Or some rounding when comparing results with threshold exactly.
> round(abs(0.95 - 1),2) > 0.05
[1] FALSE
> round(abs(0.95 - 1),2) < 0.05
[1] FALSE
>
Cheers
Petr
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rainer
> Johannes
> Sent: Tuesday, A
Hi
I did not have problems transforming factors to dates, only when trying to
transform nonexistent date.
> as.Date(factor(c("31.3.2015", "29.2.2015")), format="%d.%m.%Y")
[1] "2015-03-31" NA
>
Cheers
Petr
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Beha
You have quite a few mistakes in your example. The code below works
for me - you can wrap it in a function if you like. I think you will
need a lot more practice before you can write something like this in R
as you are missing close braces and haven't really worked out the
difference between the nu
> On Apr 5, 2016, at 8:26 AM, Francisco Banha
> wrote:
>
> Dear All,
>
> I'm currently working on a project with the purpose of remotely executing R
> code, which requires me to have to work with the code of R itself. I've
> searched the Internet for good information that will help me unders
> On Apr 5, 2016, at 10:27 AM, 何尧 wrote:
>
> I do have a bunch of genes ( nearly ~5) from the whole genome, which
> read in genomic ranges
>
> A range(gene) can be seem as an observation has three columns chromosome,
> start and end, like that
>
> seqnames start end width strand
>
On 02/04/2016 10:40 PM, Michael Morrison wrote:
Hi, I'm trying to build R on windows and i'm getting the following error
when i run the "make all recommended" command:
C:/Rtools/mingw_64/bin/windres -F pe-x86-64 -i dllversion.rc -o
dllversion.o
comm: file 1 is not in sorted order
make[4]: ***
Hi Nils,
I don't have the GMD library, but this looks like some axis labels are
being ignored to avoid overlapping. If heatmap.3 uses base graphics
you can probably get your labels by passing empty strings to heatmap.3
and then displaying the axis with staxlab (plotrix).
Jim
On Wed, Apr 6, 2016
Hello,
please see below my code for a heatmap. Unfortunately my column names do not
completely appear. Can you please send me the appropriate code to visualise
them?
Many Thanks!
Nils
library(GMD)
dat<-data.frame(EntryA=as.numeric(c(4.24,3,1.66,1.28,1.2,-1.32,-1.88)),
EntryB=as.numeric(c(4.16
On 05/04/2016 7:53 PM, Omar André Gonzáles Díaz wrote:
Hi,
I would appreciate your help.
I’m having problems when transforming a column from “factor” to “date”.
It does not convert just: 31/03/2016 correctly, it out puts: NA.
04/04/2016 turns out as: 2016-04-04
02/04/2016 turns out a
Don't give a factor to as.Date. Convert it to character first, or avoid letting
it become a factor in the first place by using the stringsAsFactors =FALSE
option to the read.table function or its related functions.
--
Sent from my phone. Please excuse my brevity.
On April 5, 2016 4:53:56 PM PD
Hi,
I would appreciate your help.
I’m having problems when transforming a column from “factor” to “date”.
It does not convert just: 31/03/2016 correctly, it out puts: NA.
04/04/2016 turns out as: 2016-04-04
02/04/2016 turns out as: 2016-02-04
31/03/2016 turns out as: NA
03/04/2016
I do have a bunch of genes ( nearly ~5) from the whole genome, which
read in genomic ranges
A range(gene) can be seem as an observation has three columns chromosome,
start and end, like that
seqnames start end width strand
gene1 chr1 1 5 5 +
gene2 chr110
I do have a bunch of genes ( nearly ~5) from the whole genome, which read
in genomic ranges
A range(gene) can be seem as an observation has three columns chromosome, start
and end, like that
seqnames start end width strand
gene1 chr1 1 5 5 +
gene2 chr110
Dear All,
I'm currently working on a project with
the purpose of remotely executing R code, which requires me to have to
work with the code of R itself. I've searched the Internet for good
information that will help me understand how R is implemented but what
I've got so far isn't detailed eno
Each \ has to be escaped. Two becomes four, not three.
--
Sent from my phone. Please excuse my brevity.
On April 5, 2016 10:23:11 AM PDT, John Sorkin
wrote:
>Windows 7 (local computer)
>Windows server (server I am trying to reach)
>
>I need to read a file whose windows path is of the form
>
almost ...
Theserver\\mydirectory\\data.csv
## should do it
-- Bert
On Tue, Apr 5, 2016 at 10:23 AM, John Sorkin
wrote:
> Windows 7 (local computer)
> Windows server (server I am trying to reach)
>
> I need to read a file whose windows path is of the form
>
> \\Theserver\mydirectory\da
Windows 7 (local computer)
Windows server (server I am trying to reach)
I need to read a file whose windows path is of the form
\\Theserver\mydirectory\data.csv
You will note that as per windows standards the server name is preceded by two
backslashes.
I am not sure how to specify this in
> On Apr 5, 2016, at 5:46 AM, Rainer Johannes wrote:
>
> Thanks Adrian and Thierry (from the previous answer).
>
> I was aware of the all.equal function, but there is nothing similar for <=
> (e.g. all.smallerEqual)?
Perhaps you will gain understanding by looking at this:
> abs(1 - 0.95) - 0
Thanks!
On 05 Apr 2016, at 16:07, Thierry Onkelinx
mailto:thierry.onkel...@inbo.be>> wrote:
You could use something like this
x <- abs(0.95 - 1)
treshold <- 0.05
x < treshold | abs(x - treshold) < 1e-6
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature
You could use something like this
x <- abs(0.95 - 1)
treshold <- 0.05
x < treshold | abs(x - treshold) < 1e-6
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat
Read the Posting Guide mentioned at the bottom of this email. Highlights you
should be sure to address:
* HTML formatted email gets messed up on the R mailing lists, so post in plain
text. Yes, you can and need to do this.
* Make sure the problem occurs in R by trying it without RStudio. Some
Thanks Adrian and Thierry (from the previous answer).
I was aware of the all.equal function, but there is nothing similar for <=
(e.g. all.smallerEqual)?
cheers, jo
On 05 Apr 2016, at 14:31, Adrian Dușa
mailto:dusa.adr...@unibuc.ro>> wrote:
Yes, that does have to do with floating point repres
Yes, that does have to do with floating point representation.
I use this function for these types of comparisons (works with values as
well as with vectors):
check.equal <- function(x, y) {
check.vector <- as.logical(unlist(lapply(x, all.equal, y)))
check.vector[is.na(check.vector)] <- FAL
FAQ 7.31
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium
To call in the statistician after the experiment is done may be no more
th
When I use any function of RWeka Package in Rstudio I get an error, "Error in
.jnew (name): java.lang.ClassFormatError." can anyone guide me in this?
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE a
Dear All,
I have the following problem:
I have a function in which I check if the difference between values is smaller
or equal to a certain threshold. I however realized that I might get there some
unexpected results:
> abs(1 - 0.95) >= 0.05
[1] TRUE
## So that’s fine, but:
> abs(1 - 0.95) <=
Okay, here is a more complete example:
sample_sizes<-
matrix(c(10,10,10,25,25,25,25,50,25,100,50,25,50,100,100,25,100,100),
nrow=2)
# see what it looks like
sample_sizes
ssds<-c(4,4.4,5,6,8)
nssds<-length(ssds)
results<-list()
# first loop steps through the sample
for(ss in 1:dim(sample_sizes)[2
Hi
Others can have better insight in your question so i tis preferable to post
your mails to the Rhelp list too.
I hope your datafile is all numeric. If not after t(datafile) can be character.
AFAIK your pvalue is not propagated to aov function.
Based on artificial data your construction arriv
Generically:
http://rseek.org/?q=predictive+maintenance
and among those:
https://rpubs.com/Simionsv/97830
http://blog.revolutionanalytics.com/2016/03/predictive-maintenance.html
--
Best,
GG
This Communication is Ericsson Confidential.
We only send and receive email on the basis of the term
30 matches
Mail list logo