data.table in R | data.table r
data.tableisapackageisusedforworkingwithtabulardatainR.Itprovidestheefficientdata.tableobjectwhichisamuchimprovedversionofthedefaultdata.frame.Itissuperfastandhasintuitiveandtersesyntax.IfyouknowRlanguageandhaven’tpickedupthe`data.table`packageyet,thenthistutorialguideisagreatplacetostart.CompleteBeginnersGuidetodata.tableinR.PhotobyYaBoi.ContentIntroduction:Whydata.table?Howtoinstalldata.tablepackageImportingDataHowtoconvertdata.frametodata.tableHowtoconvertdata.tabletodata.frameFilteringro...
data.table is a package is used for working with tabular data in R. It provides the efficient data.table object which is a much improved version of the default data.frame. It is super fast and has intuitive and terse syntax. If you know R language and haven’t picked up the `data.table` package yet, then this tutorial guide is a great place to start.
Complete Beginners Guide to data.table in R. Photo by YaBoi.
ContentIntroduction: Why data.table?How to install data.table packageImporting DataHow to convert data.frame to data.tableHow to convert data.table to data.frameFiltering rows based on conditionsHow to select given columnsHow to select multiple columns using a character vectorHow to drop columnsHow to rename columnsCreating a new column from existing columnsHow to create new columns using character vectorGroupingWhat does .N and .I doChainingWhat is .SD and How to write functions inside data.tableKeysHow to join two or more datatablesHow to merge multiple data.tables i...