You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Advanced_data_manipulation.Rmd
+8
Original file line number
Diff line number
Diff line change
@@ -669,6 +669,14 @@ DT
669
669
DT[,Name:=NULL]
670
670
```
671
671
672
+
## Listing all tables
673
+
674
+
With data.table you can always list the tables that you've created, which will also return basic information on this tables including size, keys, nrows, etc.
Copy file name to clipboardExpand all lines: Advanced_data_manipulation.html
+38-58
Original file line number
Diff line number
Diff line change
@@ -950,6 +950,22 @@ <h3><code>.GRP</code></h3>
950
950
## 2: 3
951
951
## 3: 4</pre>
952
952
953
+
</article></slide><slide class=''><hgroup><h2>Listing all tables</h2></hgroup><article id="listing-all-tables" class="smaller ">
954
+
955
+
<p>With data.table you can always list the tables that you've created, which will also return basic information on this tables including size, keys, nrows, etc.</p>
<p><code>data.table</code> also comes with <code>fread</code>, a file reader much, much better than <code>read.table</code> or <code>read.csv</code>:</p>
<pre class = 'prettyprint lang-r'>CD154_df <- dbGetQuery(Hs_con, "SELECT * FROM alias a JOIN gene_info g ON g._id = a._id WHERE a.alias_symbol LIKE 'CD154';")
<pre class = 'prettyprint lang-r'>CD40LG_alias_df <- dbGetQuery(Hs_con, "SELECT * FROM alias a JOIN gene_info g ON g._id = a._id WHERE g.symbol LIKE 'CD40LG';")
Copy file name to clipboardExpand all lines: Advanced_data_manipulation.md
+41-60
Original file line number
Diff line number
Diff line change
@@ -1102,6 +1102,27 @@ DT[, `:=`(Name, NULL)]
1102
1102
## 3: 4
1103
1103
```
1104
1104
1105
+
## Listing all tables
1106
+
1107
+
With data.table you can always list the tables that you've created, which will also return basic information on this tables including size, keys, nrows, etc.
0 commit comments