Plot with a grid?

I am looking for a type of plot that is essentially a grid. For example, there will be 10 columns and 50 rows. For e...

How can I replace TRUE and FALSE values with 1 and 0 when exporting data in R??

I am exporting data from R with the command: write.table(output,file="data.raw", na "-9999",sep="\t",row.names=F,co...

Collapse columns in a dataframe (R)?

Basically, I have a dataframe, df Beginning1 Protein2 Protein3 Protein4 Biomarker1 ...

Reading multiple csv files faster into data.table R?

I have 900000 csv files which i want to combine into one big data.table. For this case I created a for loop which re...

How to create lag variables?

I want to create lagged variable for a variable pm10 and used the following code. However, I could not get what I wa...

Create new column with most recent date?

I have some trouble with a dataset I have in data.table. Basically, I have 2 columns: scheduled delivery date and re...