File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -296,10 +296,10 @@ ts$dump(file = ts_file)
296296# ts2.dump("insert_ts_file_path_here")
297297# ... and to bring it back to R, use ...
298298ts2 <- ts_load(ts_file)
299- ts $num_individuals() # 2 (if you have run the above Python code)
299+ ts2 $num_individuals() # 2 (if you have run the above Python code)
300300file.remove(ts_file)
301301
302- # You can work similarly with table collection between R & Python
302+ # Analogous to the above, you can also use reticulate to work on a table collection
303303tc <- ts$dump_tables()
304304if (check_tskit_py(tskit)) {
305305 tc_py <- tc$r_to_py()
@@ -343,8 +343,8 @@ ts <- ts_load(ts_file)
343343# (on the pointer)
344344ts_num_individuals2(ts$xptr)
345345
346- # An identical RcppTskit implementation
347- # (available as the method of the TreeSequence class)
346+ # The above is identical to the RcppTskit implementation
347+ # (available as a method of the TreeSequence class)
348348ts$num_individuals()
349349```
350350
You can’t perform that action at this time.
0 commit comments