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
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.