| compare_correlations | R Documentation |
Over the numeric, date and binary categorical columns, Spearman correlations on pairwise complete rows.
compare_correlations(orig, syn, spec)
orig, syn |
Raw character data.frames in the same layout. |
spec |
The shared spec. |
list(mad = mean absolute difference, orig, syn matrices).
df <- data.frame(id = sprintf("AB%03d", 1:60), value = 1:60,
code = rep(c(0, 1, NA), 20))
path <- file.path(tempdir(), "compare_correlations.csv")
utils::write.csv(df, path, row.names = FALSE, na = "")
src <- read_source(path)
spec <- infer_spec(src)
syn <- src$raw
syn$value <- rev(syn$value)
compare_correlations(src$raw, syn, spec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.