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
list r dataframe


source to share


No one has answered this question yet

See similar questions:

8
Object size for characters in R - How does the global string pool work?

or similar:

2030
How do you split a list into uniformly sized chunks?
1377
How can I count the occurrences of a list item?
1270
Why not inherit from List <T>?
1064
How to sort list <T> by property in object
930
How do I change a list in Python?
709
How do I remove duplicates from a list while maintaining order?
629
data.table vs dplyr: can something do good and other do bad or bad?
466
Read very large tables quickly as data
222
Merge multiple data frames in a list at the same time
183
Compare two List <T> objects for equality, ignoring order



All Articles
Loading...
X
Show
Funny
Dev
Pics