Suppose i have two data frames, dm
and suppdm
test <- function(inds) {
a1 <- inds
a2 <- paste("supp", a1, sep = '')
print(class(a1))
print(class(a2))
}
test(dm)
At this time, a1
is the dm
data frame, but a2
is not suppdm
, just character. How to enter a parameter and use two data frames? Does this belong to the renaming of the data frame?
PS: it seems difficult to pass parameters in R function.