[R] Question about user define function

From: GL <pflugg_at_shands.ufl.edu>
Date: Tue, 15 Jun 2010 13:39:23 -0700 (PDT)

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="\"",
  dbs.that=  read.delim("that.txt", header = TRUE, sep = "\t", quote="\"",

  c(this= dbs.this,patdb = dbs.that)   


Called by:

c <- ReadInputDataFrames()


str(c) yields a list of 106 items $this.variabe1..53, $that$variable1..53

View this message in context: http://r.789695.n4.nabble.com/Question-about-user-define-function-tp2256513p2256513.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 15 Jun 2010 - 20:42:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Jun 2010 - 15:50:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive