Skip to content
Back to formatted view

Raw Message

Message-ID: <4FFE9507.7010804@simecol.de>
Date: 2012-07-12T09:12:39Z
From: Thomas Petzoldt
Subject: How to Read source code of function as string vector or matrix
In-Reply-To: <1342083602520-4636270.post@n4.nabble.com>

On 7/12/2012 11:00 AM, purushothaman wrote:
> Hi,
>
> I need to read source code of function as a string vector or matrix.
>
> if i am using get  method it return as closure type.
>
> example
>
> readcsv<-function(filepath)
> {
> output<-read.csv(filepath)
> }
>
> how to get as string vector like this
> test[1]=readcsv<-function(filepath)
> test[2]={
> test[3]=output<-read.csv(filepath)
> test[4]=}
>
> Thanks
> B.Purushothaman

?readLines

Thomas