Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Given a vector of values, how would you convert it into a time series object?



Given a vector of values, how would you convert it into a time series object?..

Answer / Smita Singh

"To convert a vector of values into a time series object in R, use the ts() function. This function assumes that the data is evenly spaced and regular.nnExample:n```Rntime <- c(1:10)ndata <- c(2, 4, 6, 8, 10, 12, 14, 16, 18, 20)nmy_ts <- ts(data, start = c(2000, 1), frequency = 12)n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

Explain what is t-tests in r?

1 Answers  


What is Descriptive analysis in R?

1 Answers  


Name various sectors that are using R?

1 Answers  


In r how missing values are represented?

1 Answers  


What is polynomial in r?

1 Answers  


Which function helps you perform sorting in r language?

1 Answers  


Why R language?

1 Answers  


Why is clustering required in data analysis?

1 Answers  


What is recycling of elements in an r vector? Give an example.

1 Answers  


What are problems with R clustering?

1 Answers  


Explain how to create a list in r?

1 Answers  


What is correlation? How would you measure correlation in r?

1 Answers  


Categories