Can I predict the size of an object R?

If I know the data types and the number of elements to input into list

or data.frame

, is it possible to predict the size of the R object?

i.e. for any n

(assuming replace = T if necessary):

   obj <- list(some_letters = letters[sample(n)], some_months = month.name[sample(n)], some_nums = 1:n)

      

What will be the formula for predicting size obj

?

+3


source to share





All Articles