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
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
~
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
- 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
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:
5 matches
Mail list logo