Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tetlabo/9a73b009339bfcab2efff66abf5bbc41 to your computer and use it in GitHub Desktop.
Save tetlabo/9a73b009339bfcab2efff66abf5bbc41 to your computer and use it in GitHub Desktop.
character型とfactor型のオブジェクトサイズの比較
vec <- sample(LETTERS, 10000, replace = TRUE)
print(object.size(vec))
vec <- as.factor(vec)
print(object.size(vec))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment