Description Usage Arguments Value See Also Examples
This function creates an empty list of lists, which can be appended to a data frame as a hstore column.
1 | new_hstore(nr)
|
nr |
Number of records. |
A empty hstore (list of lists) of length nr
.
%->%
to read or edit the resulting data structure.
1 2 3 4 5 | contacts <- data.frame(name = c("Anne", "Bert", "Chris"))
contacts$phone <- new_hstore(3)
contacts$phone %->% "home" <- c("555-123-4567", "555-923-9134", "555-276-1123")
contacts$phone[2] %->% "cell" <- "555-889-9134"
str(contacts)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.