The data preprocessing does not complete once the series is transformed into a ts object because, in many cases, you may be required to apply some additional transformation or preprocessing steps. This includes steps such as extracting or subsetting a specific element of the series or aggregating the series to a different frequency (for example, from monthly to quarterly). A typical example of such a step is splitting the series into training and testing partitions when training a forecasting model. Due to the unique structure of the ts object, in most cases, the common extraction methods for data.frame do not apply to ts objects. In this section, we will introduce methods and designated functions for data manipulation of ts objects by using the window, aggregate, and other functions.
United States
United Kingdom
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Argentina
Austria
Belgium
Bulgaria
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
Greece
Hungary
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Singapore
Slovakia
Slovenia
South Africa
South Korea
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine