Re: [R] Changing a logical matrix into a numeric matrix

2011-01-10 Thread djhurio
Nice solution :) Another one: m <- matrix(c(T,T,F,T),nr=2) m matrix(as.integer(m), dim(m)) - -- http://djhurio.wordpress.com/ http://twitter.com/djhurio http://www.linkedin.com/in/martinsliberts http://www.csb.gov.lv/ -- View this message in context: http://r.789695.n4.nabble.

Re: [R] Shortcut key to get to beginniing of line in R?

2011-01-10 Thread djhurio
Isn't Ctrl+a used for "select all" in R GUI (under Windows)? Ctrl+e does not work for me. What editor are you using? - -- http://djhurio.wordpress.com/ http://twitter.com/djhurio http://www.linkedin.com/in/martinsliberts http://www.csb.gov.lv/ -- View this message in con

Re: [R] How to get the source code for the assignment of a variable?

2010-02-11 Thread djhurio
I believe there is not such thing as source code for a variable. I believe if you define x=y*y, x is keeping only the values of y*y, but not how they were computed. Am I right? - -- http://djhurio.blogspot.com/ http://twitter.com/djhurio http://www.linkedin.com/in/martinsliberts http

Re: [R] to extract data

2009-04-20 Thread djhurio
Hi, Try this one: beechworth.dt.2 <- beechworth.dt[beechworth.dt$Year>="1927" & beechworth.dt$Year<="2007",] Martins On Apr 20, 9:59 am, Roslina Zakaria wrote: > Hi R-users, > > I have a set of data from 1958-2009, how do I extract the data from 1927 and > 2007? >   > beechworth.dt >

[R] Decomposition of time series with forecast package

2009-04-14 Thread djhurio
Hi! I am exploring the forecast package (http://www.robjhyndman.com/ index.php?option=com_content&task=view&id=55&Itemid=71). I am doing ARIMA modelling with auto.arima() function. Is it possible to get the decomposition of a time series using the model found by auto.arima()? I would like to deco