Description Usage Arguments Details Value Examples
On the surface, conjecture() appears similar to tidyr::pivot_wider(), but uses different logic tailored to a specific type of dataset:
column corresponding to names_from contains only 2 levels
there is no determinate combination of elements to fill 2 columns per row.
See vignette("conjecture") for more details.
| 1 | conjecture(data, sort_by, names_from, names_first)
 | 
| data | A data frame to reshape. | 
| sort_by | Column name, as symbol. Plays a similar role as  | 
| names_from | Column name, as symbol. Used to differentiate anterior/posterior observations. Column must only contain 2 levels (missing values not allowed). | 
| names_first | level in variable specified by  | 
conjecture() uses the following routine to match elements:
Values in sort_by are separated into two vectors: anterior and posterior.
Each anterior element is matched with the closest posterior element measured by sort_by.
An object of the same type as data.
| 1 2 3 | # See vignette("conjecture") for more examples
conjecture(comms, timestamp, type, "send")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.