Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6318371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:37:52+00:00 2026-05-24T15:37:52+00:00

I figured out a way to backcast (ie. predicting the past) with a time

  • 0

I figured out a way to backcast (ie. predicting the past) with a time series. Now I’m just struggling with the programming in R.

I would like to reverse the time series data so that I can forecast the past. How do I do this?

Say the original time series object looks like this:

     Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2008 116  99 115 101 112 120 120 110 143 136 147 142
2009 117 114 133 134 139 147 147 131 125 143 136 129

I want it to look like this for the ‘backcasting’:

     Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2008 129 136 143 125 131 147 147 139 134 133 114 117
2009 142 147 136 143 110 120 120 112 101 115  99 116

Note, I didn’t forget to change the years – I am basically mirroring/reversing the data and keeping the years, then going to forecast.

I hope this can be done in R? Or should I export and do it in Excel somehow?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:37:53+00:00Added an answer on May 24, 2026 at 3:37 pm

    Try this:

    tt <- ts(1:24, start = 2008, freq = 12)
    tt[] <- rev(tt)
    

    ADDED. This also works and does not modify tt :

    replace(tt, TRUE, rev(tt))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just figured out a way to change rect for crop box which appears
I have figured out a way to change the style of tabs at run
I've figured out a way to cache data (so that I won't have to
Hi have a Spark TextInput control but I haven't figured out a way to
PowerShell's type extension facility is neat, but I haven't yet figured out the way
I've figured out a way to tell which version of the .NET framework is
I'm using pygtk with PIL. I've already figured out a way to convert PIL
Has anyone figured out a way to have more than one entity namespace within
Has anyone figured out a way to use matlab to send email from a
Has anybody figured out a way to modify Graph objects in Mathematica 8? In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.