Skip to content

Instantly share code, notes, and snippets.

View zerweck's full-sized avatar

zerweck

View GitHub Profile
@zerweck
zerweck / export_nested_list.R
Last active September 12, 2018 08:40
[Export nested Lists] #R
# If you have nested lists or data.frames inside of a data.frame,
# print.data.frame can show these without help, but any variant
# of write.table will throw an error. This is because it uses the
# format.data.frame() function. This little function helps you do the same,
# so nested lists will be printed in one cell as long strings.
# To get the same output as print.data.frame, change the parameters as so:
## format.data.frame(df, digits = digits, na.encode = FALSE)
write.table.nested <- function(df, ...) {
df <- format.data.frame(df)
@zerweck
zerweck / tmux-cheatsheet.markdown
Last active September 12, 2018 08:41 — forked from MohamedAlaa/tmux-cheatsheet.markdown
[tmux cheatsheet] #linux #tmux

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname