If I know the types of data and number of elements to put into a list
or data.frame
is it possible to predict the size of the R object?
i.e. for any n
(assume replace = T if need be):
obj <- list(some_letters = letters[sample(n)], some_months = month.name[sample(n)], some_nums = 1:n)
what would be the formula to predict the size of obj
?