The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

radiatR design contract

library(radiatR)

radiatR keeps a tidyverse-shaped surface: data flows as plain tibbles addressed by column name, and rich objects are reserved for structure a flat table cannot hold safely.

Rich objects, only where structure is irreducible

Everything else is a plain tibble, in and out

Plain tibbles are addressed by a column-name argument (angle_col = "heading"). The circular package’s circular objects are an internal implementation detail — built inside functions, never in a public signature or return.

headings_frame: a dplyr-durable tibble subclass

headings_frame is a tibble subclass that carries the display convention durably through dplyr verbs (via the dplyr_reconstruct contract), so a mutate()/filter() never silently drops the orientation. Read its metadata with the hf_* accessors. A plain data frame with a heading column is always an acceptable substitute — the class is an enhancement, never a requirement:

data(cpunctatus)
hd <- derive_headings(cpunctatus, rule = "distal")
hd2 <- dplyr::filter(hd, is.finite(heading))   # class + display preserved
class(hd2)
#> [1] "headings_frame" "tbl_df"         "tbl"            "data.frame"
hf_display(hd2)
#> $zero
#> [1] 1.570796
#> 
#> $clockwise
#> [1] TRUE
#> 
#> $units
#> [1] "degrees"
#> 
#> attr(,"class")
#> [1] "circ_display"

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.