Re: [R] Script auto-detecting its own path

2010-09-29 Thread Stu Field
you > source it in, just make sure the working directory is set correctly: > > source("/path/to/my/script.r", chdir = T) > > chdir is the very useful, but under advertised, argument to source(). > > Hadley > > -- > Assistant Professor / Dobelman Famil

[R] Script auto-detecting its own path

2010-09-29 Thread Stu Field
ATH <- dirname(frame_files[[length(frame_files)]]) ~~ Stu Field, PhD Postdoctoral Fellow Department of Biology Colorado State University 1878 Campus Delivery Fort Collins, CO 80523-1878 Office: E208 Anatomy/Zoology Phone: (970) 491-5744 ~

Re: [R] Matrix Construction; Subdiagonal

2009-03-11 Thread Stu Field
s.csiro.au/bill.venables/ > > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org > ] On Behalf Of Sundar Dorai-Raj > Sent: Thursday, 12 March 2009 10:00 AM > To: Stu Field > Cc: r-help@r-project.org > Subject: Re: [R] Matr

Re: [R] Matrix Construction; Subdiagonal

2009-03-11 Thread Stu Field
- matrix(0, 6, 6) > vec <- 1:5 > A[row(A) == col(A) + 1] <- vec > > --sundar > > On Wed, Mar 11, 2009 at 4:42 PM, Stu Field wrote: >> I'm trying to enter a vector into the subdiagonal of a matrix but >> cannot find a command in R which corresponds to the Mat

[R] Matrix Construction; Subdiagonal

2009-03-11 Thread Stu Field
elieve there is not a simple way to do this... Thanks for your help, ~~~~~~ Stu Field, PhD Postdoctoral Fellow Department of Biology Colorado State University 1878 Campus Delivery Fort Collins, CO 80523-1878 Office: E208 Anatomy/Zoology Phone: