Indexing with Factors
I spent a cycle figuring out, how R treats factors as an index.
I spent a cycle figuring out, how R treats factors as an index.
I was trying to read in different features for a cell line, e.g., mutations and expression from separate files and reduce them to a single design matrix.
R provides many methods for indexing. Coming from other languages, it takes time to get comfortable with indexing in R.