Pitfalls

Avoiding pitfalls of R

keywords

# avoid simple keywords such as "data", ... (these keywords have specific functionality in R)

data = read.table('table.tsv', header=TRUE) # wrong

# use data specific naming ("mydata", "experiment1", ...

mydata = read.table('mydata_text_file.tsv', header=TRUE) # correct

Row names versus row numbers

http://www.perfectlyrandom.org/2015/06/16/never-trust-the-row-names-of-a-dataframe-in-R/