On 15/06/10 21:39, GL wrote:
Have the following function that is called by the statement below. Trying to
return the two dataframes, but instead get one large list including both
tables.
ReadInputDataFrames<- function() {
dbs.this= read.delim("this.txt", header = TRUE, sep = "\t", quote="\"",
dec=".")
dbs.that= read.delim("that.txt", header = TRUE, sep = "\t", quote="\"",
dec=".")
c(this= dbs.this,patdb = dbs.that)
If you really want to return "two dataframes", then
return(list(this = dbs.this, that = dbs.that))
More likely, you want to return all the data in one dataframe. If they
have the same structure (columns and column names) then you want
return(rbind(dbs.this, dbs,that))
If you want something else, provide an example.
Hope this helps a little.
Allan
______________________________________________
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.