Dear R users:

 

I am new to R and I haven’t been able to figure out why this doesn’t work.

 

I have this object ts class object:

 

> AnomaliaFore

               Jan           Feb           Mar           Apr           May

1950                                                         -1.282000e+00

1951 -9.440000e-01 -7.400000e-01 -7.660000e-01 -5.380000e-01 -3.960000e-01

1952  6.140000e-01  6.060000e-01  3.940000e-01  3.200000e-01  1.400000e-01

1953 -3.400000e-02  7.400000e-02  1.080000e-01  2.800000e-01  4.040000e-01

1954  4.140000e-01  3.040000e-01  2.840000e-01  1.380000e-01  8.800000e-02

1955 -1.020000e+00 -8.860000e-01 -8.920000e-01 -8.520000e-01 -8.840000e-01

1956 -1.640000e+00 -1.416000e+00 -1.218000e+00 -9.360000e-01 -6.760000e-01

1957 -5.340000e-01 -3.240000e-01 -2.180000e-01  5.400000e-02  1.840000e-01

1958  1.218000e+00  1.456000e+00  1.542000e+00  1.364000e+00  1.112000e+00

1959  1.780000e-01  4.020000e-01  4.000000e-01  4.160000e-01  3.400000e-01

1960 -1.780000e-01 -1.280000e-01 -1.100000e-01 -5.800000e-02 -6.600000e-02

1961 -2.380000e-01 -2.520000e-01 -2.100000e-01 -1.140000e-01 -6.400000e-02

1962 -4.340000e-01 -3.560000e-01 -2.960000e-01 -3.060000e-01 -3.720000e-01

1963 -5.620000e-01 -5.540000e-01 -4.680000e-01 -3.300000e-01 -2.420000e-01

1964  9.460000e-01  8.800000e-01  6.460000e-01  3.340000e-01 -7.600000e-02

1965 -9.700000e-01 -8.020000e-01 -6.480000e-01 -3.960000e-01 -1.120000e-01

1966  1.524000e+00  1.462000e+00  1.328000e+00  1.144000e+00  7.560000e-01

1967 -2.200000e-01 -2.480000e-01 -3.440000e-01 -4.640000e-01 -4.560000e-01

1968 -4.900000e-01 -5.520000e-01 -5.700000e-01 -5.860000e-01 -6.260000e-01

1969  6.400000e-01  8.540000e-01  9.580000e-01  8.860000e-01  8.880000e-01

1970  8.480000e-01  8.040000e-01  6.900000e-01  6.340000e-01  3.900000e-01

1971 -1.406000e+00 -1.478000e+00 -1.446000e+00 -1.368000e+00 -1.120000e+00

1972 -7.800000e-01 -6.680000e-01 -5.460000e-01 -2.780000e-01  1.400000e-02

1973  1.798000e+00  1.812000e+00  1.592000e+00  1.140000e+00  6.120000e-01

1974 -1.626000e+00 -1.684000e+00 -1.634000e+00 -1.442000e+00 -1.250000e+00

1975 -6.460000e-01 -6.280000e-01 -5.920000e-01 -5.140000e-01 -5.540000e-01

1976 -1.530000e+00 -1.480000e+00 -1.306000e+00 -1.188000e+00 -9.640000e-01

1977  8.200000e-01  7.740000e-01  6.580000e-01  4.440000e-01  3.520000e-01

1978  6.640000e-01  6.480000e-01  5.500000e-01  3.040000e-01  9.200000e-02

1979 -1.360000e-01 -4.800000e-02  8.000000e-02  1.420000e-01  1.400000e-01

1980  5.360000e-01  4.620000e-01  4.340000e-01  3.940000e-01  3.220000e-01

1981 -4.000000e-03 -1.000000e-01 -1.280000e-01 -2.260000e-01 -3.720000e-01

1982  6.600000e-02  8.400000e-02  5.600000e-02  1.420000e-01  2.760000e-01

1983  2.280000e+00  2.474000e+00  2.442000e+00  2.228000e+00  1.906000e+00

1984 -7.240000e-01 -7.460000e-01 -6.560000e-01 -5.280000e-01 -4.240000e-01

1985 -9.080000e-01 -1.068000e+00 -1.118000e+00 -1.076000e+00 -9.120000e-01

1986 -4.420000e-01 -5.140000e-01 -5.300000e-01 -5.160000e-01 -4.940000e-01

1987  1.100000e+00  1.228000e+00  1.298000e+00  1.276000e+00  1.228000e+00

1988  1.328000e+00  1.084000e+00  8.220000e-01  4.560000e-01 -2.600000e-02

1989 -1.910000e+00 -1.940000e+00 -1.792000e+00 -1.544000e+00 -1.250000e+00

1990 -2.120000e-01 -8.200000e-02  5.000000e-02  1.720000e-01  2.500000e-01

1991  3.260000e-01  3.520000e-01  2.960000e-01  3.140000e-01  3.460000e-01

1992  1.318000e+00  1.620000e+00  1.752000e+00  1.776000e+00  1.644000e+00

1993 -1.565317e-17  8.800000e-02  2.440000e-01  4.260000e-01  5.880000e-01

1994  2.740000e-01  1.980000e-01  1.580000e-01  1.240000e-01  1.220000e-01

1995  1.012000e+00  1.092000e+00  1.008000e+00  7.860000e-01  4.980000e-01

1996 -8.300000e-01 -8.640000e-01 -7.820000e-01 -6.740000e-01 -5.700000e-01

1997 -3.960000e-01 -4.020000e-01 -3.520000e-01 -2.200000e-01  3.800000e-02

1998  2.620000e+00  2.596000e+00  2.374000e+00  1.988000e+00  1.574000e+00

1999 -1.386000e+00 -1.434000e+00 -1.360000e+00 -1.262000e+00 -1.082000e+00

2000 -1.344000e+00 -1.458000e+00 -1.478000e+00 -1.334000e+00 -1.148000e+00

2001 -6.900000e-01 -7.200000e-01 -6.540000e-01 -5.380000e-01 -3.940000e-01

2002 -9.600000e-02 -2.800000e-02  6.000000e-03  7.200000e-02  2.100000e-01

2003  1.452000e+00  1.374000e+00  1.214000e+00  8.900000e-01  4.880000e-01

2004  4.200000e-01  3.900000e-01  2.600000e-01  1.880000e-01  1.620000e-01

2005  7.680000e-01  6.560000e-01  5.780000e-01  4.980000e-01  4.180000e-01

2006 -2.960000e-01 -4.160000e-01 -5.640000e-01 -5.460000e-01 -4.000000e-01

2007  9.640000e-01  8.480000e-01  6.780000e-01  4.560000e-01  1.600000e-01

2008 -1.402000e+00 -1.600000e+00 -1.540000e+00 -1.420000e+00 -1.236000e+00

2009 -4.487463e-01 -5.856847e-01 -7.278043e-01 -9.054436e-01 -9.859018e-01

2010 -7.947356e-01 -6.909947e-01 -5.768103e-01 -4.544823e-01 -3.256865e-01

2011  6.715963e-01  7.615307e-01  8.380753e-01  9.001396e-01  9.469334e-01

2012  7.738272e-01  6.946127e-01  6.067913e-01  5.119582e-01  4.117645e-01

               Jun           Jul           Aug           Sep           Oct

1950 -1.122000e+00 -8.640000e-01 -8.360000e-01 -8.660000e-01 -6.860000e-01

1951 -1.800000e-01 -8.400000e-02  2.040000e-01  2.700000e-01  4.740000e-01

1952 -2.000000e-02 -1.400000e-01 -6.200000e-02 -1.780000e-01 -1.220000e-01

1953  3.780000e-01  4.160000e-01  3.860000e-01  4.060000e-01  4.400000e-01

1954 -1.120000e-01 -3.160000e-01 -5.700000e-01 -7.280000e-01 -8.280000e-01

1955 -7.620000e-01 -8.160000e-01 -8.060000e-01 -9.980000e-01 -1.130000e+00

1956 -5.060000e-01 -5.560000e-01 -5.440000e-01 -5.620000e-01 -5.960000e-01

1957  3.360000e-01  4.480000e-01  6.560000e-01  6.320000e-01  7.160000e-01

1958  8.520000e-01  5.940000e-01  4.540000e-01  2.460000e-01  1.980000e-01

1959  2.040000e-01 -1.000000e-02 -1.060000e-01 -2.820000e-01 -3.280000e-01

1960 -8.800000e-02 -1.800000e-02  1.600000e-02 -1.600000e-02 -5.600000e-02

1961  1.040000e-01  8.400000e-02  5.400000e-02 -1.060000e-01 -2.360000e-01

1962 -3.220000e-01 -2.620000e-01 -1.880000e-01 -2.160000e-01 -1.980000e-01

1963 -9.200000e-02  1.940000e-01  3.780000e-01  5.060000e-01  7.460000e-01

1964 -4.400000e-01 -6.400000e-01 -7.460000e-01 -8.460000e-01 -8.100000e-01

1965  1.820000e-01  4.680000e-01  7.340000e-01  9.780000e-01  1.224000e+00

1966  6.000000e-01  4.780000e-01  3.160000e-01  1.500000e-01  1.520000e-01

1967 -3.360000e-01 -3.120000e-01 -2.420000e-01 -2.000000e-01 -2.500000e-01

1968 -4.800000e-01 -2.160000e-01 -8.000000e-03  8.400000e-02  2.620000e-01

1969  7.720000e-01  5.880000e-01  5.460000e-01  5.740000e-01  5.820000e-01

1970  1.340000e-01 -1.200000e-01 -3.520000e-01 -6.540000e-01 -8.780000e-01

1971 -9.320000e-01 -7.360000e-01 -6.220000e-01 -5.640000e-01 -5.780000e-01

1972  3.180000e-01  5.760000e-01  8.740000e-01  1.038000e+00  1.274000e+00

1973  1.040000e-01 -3.620000e-01 -7.080000e-01 -9.180000e-01 -1.088000e+00

1974 -9.260000e-01 -7.000000e-01 -5.600000e-01 -4.920000e-01 -4.500000e-01

1975 -6.860000e-01 -8.020000e-01 -9.220000e-01 -1.080000e+00 -1.208000e+00

1976 -6.140000e-01 -3.720000e-01 -1.660000e-01  8.400000e-02  3.880000e-01

1977  2.500000e-01  2.440000e-01  1.920000e-01  2.780000e-01  3.660000e-01

1978 -1.500000e-01 -2.780000e-01 -4.380000e-01 -4.340000e-01 -3.960000e-01

1979  1.960000e-01  1.480000e-01  5.200000e-02  1.840000e-01  2.280000e-01

1980  3.220000e-01  2.740000e-01  2.260000e-01  1.820000e-01  1.240000e-01

1981 -3.080000e-01 -2.880000e-01 -3.820000e-01 -3.180000e-01 -2.180000e-01

1982  4.840000e-01  6.860000e-01  9.200000e-01  1.148000e+00  1.404000e+00

1983  1.484000e+00  9.940000e-01  5.800000e-01  2.960000e-01 -7.600000e-02

1984 -3.780000e-01 -3.820000e-01 -3.980000e-01 -3.840000e-01 -4.440000e-01

1985 -8.220000e-01 -6.940000e-01 -5.500000e-01 -4.500000e-01 -4.020000e-01

1986 -3.120000e-01 -1.040000e-01  8.400000e-02  2.720000e-01  5.180000e-01

1987  1.256000e+00  1.336000e+00  1.448000e+00  1.576000e+00  1.674000e+00

1988 -4.640000e-01 -8.720000e-01 -1.198000e+00 -1.368000e+00 -1.508000e+00

1989 -9.560000e-01 -7.520000e-01 -5.780000e-01 -4.560000e-01 -3.900000e-01

1990  2.600000e-01  2.440000e-01  2.500000e-01  2.060000e-01  2.220000e-01

1991  4.200000e-01  5.420000e-01  6.680000e-01  6.940000e-01  7.820000e-01

1992  1.368000e+00  1.070000e+00  7.200000e-01  3.960000e-01  9.800000e-02

1993  7.100000e-01  7.500000e-01  6.740000e-01  5.500000e-01  4.040000e-01

1994  2.040000e-01  2.800000e-01  3.840000e-01  4.120000e-01  5.360000e-01

1995  3.080000e-01  1.420000e-01 -3.000000e-02 -2.160000e-01 -3.940000e-01

1996 -4.500000e-01 -2.780000e-01 -2.020000e-01 -1.980000e-01 -1.920000e-01

1997  4.380000e-01  8.740000e-01  1.324000e+00  1.714000e+00  2.074000e+00

1998  9.000000e-01  2.380000e-01 -3.120000e-01 -6.940000e-01 -1.088000e+00

1999 -9.400000e-01 -8.300000e-01 -8.760000e-01 -8.960000e-01 -9.300000e-01

2000 -8.680000e-01 -6.380000e-01 -4.760000e-01 -4.280000e-01 -4.260000e-01

2001 -2.020000e-01 -3.800000e-02  5.600000e-02  7.000000e-02  1.020000e-01

2002  4.020000e-01  5.320000e-01  7.140000e-01  9.000000e-01  1.114000e+00

2003  2.380000e-01  1.480000e-01  4.600000e-02  8.400000e-02  2.820000e-01

2004  1.700000e-01  2.580000e-01  4.340000e-01  5.660000e-01  6.660000e-01

2005  4.120000e-01  4.360000e-01  3.900000e-01  3.100000e-01  2.540000e-01

2006 -1.560000e-01  2.000000e-02  2.380000e-01  3.960000e-01  5.420000e-01

2007  2.400000e-02 -5.800000e-02 -1.640000e-01 -3.580000e-01 -5.960000e-01

2008 -9.380000e-01 -5.440000e-01 -3.000000e-01 -1.700000e-01 -1.060000e-01

2009 -1.042279e+00 -1.073618e+00 -1.086100e+00 -1.063740e+00 -1.022710e+00

2010 -1.929225e-01 -5.814520e-02  7.640498e-02  2.086067e-01  3.362356e-01

2011  9.779685e-01  9.930657e-01  9.923415e-01  9.761947e-01  9.452826e-01

2012  3.078933e-01  2.020378e-01  9.587976e-02 -8.930271e-03 -1.107930e-01

               Nov           Dec

1950 -7.640000e-01 -8.540000e-01

1951  6.260000e-01  6.880000e-01

1952 -6.600000e-02 -1.100000e-01

1953  4.500000e-01  3.240000e-01

1954 -9.160000e-01 -9.540000e-01

1955 -1.410000e+00 -1.558000e+00

1956 -7.040000e-01 -6.080000e-01

1957  9.180000e-01  1.090000e+00

1958  1.160000e-01  1.720000e-01

1959 -3.240000e-01 -2.480000e-01

1960 -1.080000e-01 -1.420000e-01

1961 -4.160000e-01 -4.180000e-01

1962 -2.900000e-01 -4.140000e-01

1963  9.120000e-01  9.480000e-01

1964 -8.660000e-01 -9.740000e-01

1965  1.392000e+00  1.530000e+00

1966  2.000000e-03 -1.320000e-01

1967 -3.640000e-01 -4.080000e-01

1968  4.120000e-01  4.920000e-01

1969  6.080000e-01  7.980000e-01

1970 -1.086000e+00 -1.282000e+00

1971 -6.540000e-01 -7.380000e-01

1972  1.526000e+00  1.736000e+00

1973 -1.278000e+00 -1.450000e+00

1974 -5.740000e-01 -6.400000e-01

1975 -1.246000e+00 -1.390000e+00

1976  6.000000e-01  7.200000e-01

1977  4.480000e-01  5.260000e-01

1978 -3.420000e-01 -2.500000e-01

1979  2.480000e-01  4.080000e-01

1980  1.800000e-02  5.400000e-02

1981 -2.220000e-01 -1.160000e-01

1982  1.612000e+00  1.956000e+00

1983 -4.100000e-01 -5.860000e-01

1984 -5.360000e-01 -7.640000e-01

1985 -3.400000e-01 -3.380000e-01

1986  7.240000e-01  9.120000e-01

1987  1.662000e+00  1.542000e+00

1988 -1.680000e+00 -1.806000e+00

1989 -3.440000e-01 -2.940000e-01

1990  2.460000e-01  2.960000e-01

1991  8.760000e-01  1.084000e+00

1992 -8.000000e-03 -4.800000e-02

1993  3.240000e-01  2.860000e-01

1994  7.100000e-01  9.340000e-01

1995 -5.840000e-01 -7.520000e-01

1996 -2.220000e-01 -3.140000e-01

1997  2.344000e+00  2.530000e+00

1998 -1.198000e+00 -1.308000e+00

1999 -1.028000e+00 -1.196000e+00

2000 -4.820000e-01 -5.860000e-01

2001  5.000000e-02 -5.800000e-02

2002  1.276000e+00  1.420000e+00

2003  3.900000e-01  4.040000e-01

2004  7.700000e-01  8.160000e-01

2005  1.060000e-01 -8.800000e-02

2006  7.140000e-01  9.180000e-01

2007 -8.980000e-01 -1.140000e+00

2008 -8.600000e-02 -2.540000e-01

2009 -9.626505e-01 -8.867900e-01

2010  4.572391e-01  5.696267e-01

2011  9.004947e-01  8.429220e-01

2012 -2.081802e-01 -2.996556e-01

> 

 

When I try to make it a timeSeries object:

 

> as.timeSeries(AnomaliaFore)

 

       Series 1

  [1,]   -1.282

  [2,]   -1.122

  [3,]   -0.864

  [4,]   -0.836

  [5,]   -0.866

  [6,]   -0.686

  [7,]   -0.764

  [8,]   -0.854

  [9,]   -0.944

 [10,]   -0.740

 [11,]   -0.766

 [12,]   -0.538

 [13,]   -0.396

 [14,]   -0.180

 [15,]   -0.084

 [16,]    0.204

 [17,]    0.270

 [18,]    0.474

 [19,]    0.626

 [20,]    0.688

 [21,]    0.614

 [22,]    0.606

 [23,]    0.394

 [24,]    0.320

 [25,]    0.140

 [26,]   -0.020

 [27,]   -0.140

 [28,]   -0.062

 [29,]   -0.178

 [30,]   -0.122

 [31,]   -0.066

 [32,]   -0.110

 [33,]   -0.034

 [34,]    0.074

 [35,]    0.108

 [36,]    0.280

 [37,]    0.404

 [38,]    0.378

 [39,]    0.416

 [40,]    0.386

 [41,]    0.406

 [42,]    0.440

 [43,]    0.450

 [44,]    0.324

 [45,]    0.414

 [46,]    0.304

 [47,]    0.284

 [48,]    0.138

 [49,]    0.088

 [50,]   -0.112

 [51,]   -0.316

 [52,]   -0.570

 [53,]   -0.728

 [54,]   -0.828

 [55,]   -0.916

 [56,]   -0.954

 [57,]   -1.020

 [58,]   -0.886

 [59,]   -0.892

 [60,]   -0.852

 [61,]   -0.884

 [62,]   -0.762

 [63,]   -0.816

 [64,]   -0.806

 [65,]   -0.998

 [66,]   -1.130

 [67,]   -1.410

 [68,]   -1.558

 [69,]   -1.640

 [70,]   -1.416

 [71,]   -1.218

 [72,]   -0.936

 [73,]   -0.676

 [74,]   -0.506

 [75,]   -0.556

 [76,]   -0.544

 [77,]   -0.562

 [78,]   -0.596

 [79,]   -0.704

 [80,]   -0.608

 [81,]   -0.534

 [82,]   -0.324

 [83,]   -0.218

 [84,]    0.054

 [85,]    0.184

 [86,]    0.336

 [87,]    0.448

 [88,]    0.656

 [89,]    0.632

 [90,]    0.716

 [91,]    0.918

 [92,]    1.090

 [93,]    1.218

 [94,]    1.456

 [95,]    1.542

 [96,]    1.364

 [97,]    1.112

 [98,]    0.852

 [99,]    0.594

[100,]    0.454

...

 [ reached getRmetricsOptions('max.print') | getOption('max.print') --
omitted 652 rows ]]

 

 

It doesn´t look like a timeSeries object.  I have problems when I try to
cbind this object with a trully time Series object.

 

Could somebody help me please?

 

Alvaro Riascos

Universidad de los Andes

Colombia

South America


	[[alternative HTML version deleted]]

