Top "Data.table" questions

The R data.

Converting a numeric matrix into a data.table (or data.frame)

Hoping there's a simple answer here but I can't find it anywhere. I have a numeric matrix with labelled rows …

r dataframe transformation data.table reshape
Use data.table to count and aggregate / summarize a column

I want to count and aggregate(sum) a column in a data.table, and couldn't find the most efficient way …

r dataframe data.table aggregate
Force character vector encoding from "unknown" to "UTF-8" in R

I have a problem with inconsistent encoding of character vector in R. The text file which I read a table …

r utf-8 character-encoding data.table
Left join using data.table

Suppose I have two data.table's: A: A B 1: 1 12 2: 2 13 3: 3 14 4: 4 15 B: A B 1: 2 13 2: 3 14 and I have the following code: merge_test = …

r merge data.table
What is the purpose of setting a key in data.table?

I am using data.table and there are many functions which require me to set a key (e.g. X[…

r data.table
Possible to print more than 100 rows of a data.table?

The data.table has a nice feature that suppresses output to the head and tail of the table. Is it …

r printing data.table options output-formatting
Use of lapply .SD in data.table R

I am not very clear about use of .SD and by. For instance, does the below snippet mean: 'change all …

r data.table
Remove multiple columns from data.table

What's the correct way to remove multiple columns from a data.table? I'm currently using the code below, but was …

r data.table
fread in R imports a large .csv file as a data frame with one row

I'm importing a large .csv file into R (about 0.5 million rows), so I've been trying to use fread() from the …

r import data.table fread
can the value.var in dcast be a list or have multiple value variables?

In the help files for dcast.data.table, there is a note stating that a new feature has been implemented: "…

r data.table reshape reshape2