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
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.
2 matches
Mail list logo