How do I summarize the aggregation in a function by passing a list of conditions and values?
# This works fine:
x <- data.frame(cond1 = sample(letters[1:3], 500, replace=TRUE) ,
cond2 = sam
How do I summarize the aggregation in a function by passing a list of conditions and values?
# This works fine:
x <- data.frame(cond1 = sample(letters[1:3], 500, replace=TRUE) ,
cond2 = sam
I am trying to master the manipulation of table data into a more visually attractive output format. This may be part of the problem, because what I want may be for a separate reporting software. <
I know I can do this
a <- dt[,sum(x), by=y ] I can do this too
dt[,z:=sum(x), by=y] # this would modify dt But I don’t know why I can’t do this:
a <- dt[,z=sum(x), by=y] < p>How t
From Open Source China: https://my.oschina.net/chwencong/blog/52650 div> PowerDesigner table name, column name case conversion span> Collection Car water code farmers Posted in 5
All I know is the name of the table and the id value of the query I want to execute, but I don’t know what id is called in the table. You can use the answer to a quite similar question to find t