Hello
Let's say some questions about merging xts variables :
a<- xts("abc", Sys.Date())
b <- xts("def", Sys.Date())
c <- xts(1, Sys.Date())
> merge(a,b)
a b
2015-09-03 "abc" "def"
> merge(a,b,c)
a b c
2015-09-03 NA NA 1
Warning messages:
1: In merge.xts(a, b,
The root of your problems lie in your assumption that xts variables act like
data frames. Instead they are matrices with an index attribute. All values in a
matrix must be of the same storage mode.
You might want to investigate the data.table package. It is not a time series
object but you
On Thu, Sep 3, 2015 at 7:40 PM, ce wrote:
>
> Hello
>
> Let's say some questions about merging xts variables :
>
> a<- xts("abc", Sys.Date())
> b <- xts("def", Sys.Date())
> c <- xts(1, Sys.Date())
>
>> merge(a,b)
>a b
> 2015-09-03 "abc" "def"
>> merge(a,b,c)
c"
2015-09-06 "def"
2015-09-07 "abc"
-Original Message-
From: "Joshua Ulrich" [josh.m.ulr...@gmail.com]
Date: 09/03/2015 09:43 PM
To: "ce" <zadi...@excite.com>
CC: "R-Help" <r-help@r-project.org>
Subject: Re: [R] merge
Hi,
I'm triyng to merge two xts time series objects, one of them is from
Return.portfolio (PerformanceAnalytics).
Despite the merging xts objects have the same indexes, the merged object shows
extra lines at the day before of every entry.
I noticed that indexes of merging objects have
On Fri, Nov 15, 2013 at 6:32 AM, Simone Medori simone.med...@me.com wrote:
Hi,
I'm triyng to merge two xts time series objects, one of them is from
Return.portfolio (PerformanceAnalytics).
Despite the merging xts objects have the same indexes, the merged object
shows extra lines at the day
Thanks
Simone
Il giorno 15/nov/2013, alle ore 15:30, Joshua Ulrich
josh.m.ulr...@gmail.com ha scritto:
On Fri, Nov 15, 2013 at 6:32 AM, Simone Medori simone.med...@me.com wrote:
Hi,
I'm triyng to merge two xts time series objects, one of them is from
Return.portfolio
Hi all ,
I have 12 xts objects of differing timeseries stamp. For example :
str(s1_predict.xts)
An ‘xts’ object from 1990-03-25 20:00:00 to 1990-12-15 09:00:00 containing:
Data: num [1:725, 1] 11.23 10.18 9.3 9.74 10.18 ...
- attr(*, dimnames)=List of 2
..$ : NULL
..$ : NULL
Indexed
8 matches
Mail list logo