Re: [R] quotation problem/dataframe names as function input argument.

2008-12-23 Thread David Winsemius
I think you are making it too hard. See if one of these is a path to the answer you seek: > get(dframe.vec) V1 V2 1 1 2 # > n.obs <- function(x) dim(x) > n.obs(get(dframe.vec)) [1] 1 2 #--- > ng.obs <- function(x) dim(get(x)) > ng.obs(dframe.vec) [1] 1 2 #- > ng1.obs <- funct

[R] quotation problem/dataframe names as function input argument.

2008-12-23 Thread Sean Zhang
Dear R friends: Can someone help me with the following problem? Many thanks in advance. # Problem Description: # I want to write functions which take a (character) vector of dataframe names as input argument. # For example, I want to extract the number of observations from a number of dataframes.