[R] Structure to ts Error in attributes(.Data) <- c(attributes(.Data), attrib) :

Bill Poling Bill@Poling @ending from zeli@@com
Tue Jul 3 17:23:35 CEST 2018


Hi, obviously missing something here? Getting error: Error in attributes(.Data) <- c(attributes(.Data), attrib) : invalid time series parameters specified


dat3 <- structure(c(1439713.32, 1265962.79, 1491834.9, 1276180.74, 1702077.51, 1420186.1, 1469240.11, 1415855.34, 1592933.06,   #9
                    1615926.39, 1668444.01, 1753406, 1356487.99, 1577808.22, 1906113.28, 1595299.45, 1671740.24, 1696643.33,    #9
                    1490665.78, 1937361.24, 1480193.81, 1676066.85, 2004112.69, 1798906.55, 1619973.89, 1280088.4, 1877394.67,  #9
                    2041241.6, 1390644.41, 2208564.77,                                                                          #3
                    #30

                    1384.3, -14169.24, -1455.1, -82397.77, -15564.42, 1808.77, -29776.31, -62641.51, -15418.52, #9
                    -6170.87, -14208.48, -43046.76, -43853.35, -53907.65, -29729.62, -47990.07, 54674.99,       #8
                    4029.92, -48323.28, 35197.06, -97430.56, -48994.68, -49803.5, -12870.97, -33126.07,         #8
                    -27147.19, -9559.51, -37699.07, -222996.6, -329.55,                                         #5
                    #30

                    -95835.69, -73436.06, -100240.36, -78918.26, -71763.56, -83735.15, -34898.95, -98622.59, -66763.2,         #9
                    -184645.76, -85494.47, -94503.59, -143120.57, -49829.96, -99636.61, -108242.24, -101192.2, -60214.25,      #9
                    -208992.81, -49769.11, -93133.14, -160933.77, -197905.84, -194055.39, -101310.71, -185137.96, -204476.75,  #9
                    -149305.62, -171494.96, -441145.96                                                                         #3
                    #30
)
                  ,.Dim = c(30L, 3L)
                  ,.Dimnames = list(NULL, c("Var1","Var2" ,"Var3"))
                  ,.Tsp = c(2016, 2018.5, 12), class = c("mts", "ts", "matrix"))

I am sure it's glaring at me!

Thank you for any advice.

WHP


Confidentiality Notice This message is sent from Zelis. ...{{dropped:15}}



More information about the R-help mailing list