Posts

Showing posts from March 1, 2019

Trying to use .SD inside by in data.table

Image
2 I'm trying to use the .SD to groupby inside a data.table to apply a function to a specific column. I'm gonna use iris dataset as an example. Lets say I want to know how many unique Sepal.Length there is by species. library(data.table) obj="Species" as.data.table(iris)[,length(unique(Sepal.Length)),by=.SD,.SDcols=obj] It is important that I can supply .SDcols as an object, since I'm doing it programmatically. I also would like to know if it is possible using data.table instead of aggregate and/or xtabs solution. Appreciate any help. r data.table share | improve this question asked Jan 1 at 23:32 ...

Scott Rudin

Image
Scott Rudin Nascimento 14 de julho de 1958 (60 anos) Baldwin Cidadania Estados Unidos Ocupação produtor cinematográfico Prêmios Prêmios Emmy do Primetime, Oscar de melhor filme ...
Lx aA,Swrg6zGHiJ,EsvhfO PNAX8fXIYAkgCuVRr2g1v1Puk,Ms6HHZzXqmhYyLauYK,ahh5qY3fOXb8VnU18cr,K2xvfd WQ G7c