{
  "_id": "6a129343acfb0bcc41d0b83e",
  "Package": "rearrr",
  "Title": "Rearranging Data",
  "Version": "0.3.5",
  "Authors@R": "c(person(given = \"Ludvig Renbo\",\nfamily = \"Olsen\",\nrole = c(\"aut\", \"cre\"),\nemail = \"r-pkgs@ludvigolsen.dk\",\ncomment = c(ORCID = \"0009-0006-6798-7454\")))",
  "Description": "Arrange data by a set of methods. Use rearrangers to\nreorder data points and mutators to change their values. From\nbasic utilities, to centering the greatest value, to swirling\nin 3-dimensional space, 'rearrr' enables creativity when\nplotting and experimenting with data.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/ludvigolsen/rearrr",
  "BugReports": "https://github.com/ludvigolsen/rearrr/issues",
  "RdMacros": "lifecycle",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Repository": "https://ludvigolsen.r-universe.dev",
  "Date/Publication": "2025-03-06 18:28:45 UTC",
  "RemoteUrl": "https://github.com/ludvigolsen/rearrr",
  "RemoteRef": "HEAD",
  "RemoteSha": "03843f8acf45b2deb46ef506b22f2434ef9f758e",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-24 05:53:49 UTC",
    "User": "root"
  },
  "Author": "Ludvig Renbo Olsen [aut, cre] (ORCID:\n<https://orcid.org/0009-0006-6798-7454>)",
  "Maintainer": "Ludvig Renbo Olsen <r-pkgs@ludvigolsen.dk>",
  "MD5sum": "ec2b94ef69f813d1fc468d0647a9ff40",
  "_user": "ludvigolsen",
  "_type": "src",
  "_file": "rearrr_0.3.5.tar.gz",
  "_fileid": "a1fe06cd9e016e663c3708d8897ff093580f8733561a0bcf80ac7b10cd4b20e9",
  "_filesize": 2068021,
  "_sha256": "a1fe06cd9e016e663c3708d8897ff093580f8733561a0bcf80ac7b10cd4b20e9",
  "_created": "2026-05-24T05:53:49.000Z",
  "_published": "2026-05-24T05:57:23.955Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77575489593,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7182676432"
    },
    {
      "job": 77575489590,
      "time": 165,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7182675426"
    },
    {
      "job": 77575489596,
      "time": 96,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7182668161"
    },
    {
      "job": 77575489602,
      "time": 110,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7182669509"
    },
    {
      "job": 77575324485,
      "time": 187,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7182657966"
    },
    {
      "job": 77575489591,
      "time": 104,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7182669079"
    },
    {
      "job": 77575489595,
      "time": 140,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7182672902"
    },
    {
      "job": 77575489600,
      "time": 126,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7182671339"
    },
    {
      "job": 77575489598,
      "time": 137,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7182672457"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ludvigolsen/actions/runs/26353330748",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ludvigolsen/rearrr",
  "_commit": {
    "id": "03843f8acf45b2deb46ef506b22f2434ef9f758e",
    "author": "Ludvig <ludvig@clin.au.dk>",
    "committer": "Ludvig <ludvig@clin.au.dk>",
    "message": "Fix: Allows roll_elements() to work on non-numeric vectors/columns\n",
    "time": 1741285725
  },
  "_maintainer": {
    "name": "Ludvig Renbo Olsen",
    "email": "r-pkgs@ludvigolsen.dk"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "version": ">= 2.0.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 0.8.5",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": ">= 0.3.4",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.4.7",
      "role": "Imports"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "xpectr",
      "version": ">= 0.4.3",
      "role": "Suggests"
    }
  ],
  "_owner": "ludvigolsen",
  "_selfowned": true,
  "_usedby": 9,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "arrange",
    "cluster",
    "expand",
    "forming",
    "generate",
    "ggplot2",
    "order",
    "plotting-in-r",
    "roll",
    "rotate",
    "shaping",
    "swirl",
    "transformations"
  ],
  "_stars": 23,
  "_contributors": [
    {
      "user": "ludvigolsen",
      "count": 247,
      "uuid": 22819047
    }
  ],
  "_userbio": {
    "uuid": 22819047,
    "type": "user",
    "name": "Ludvig Renbo Olsen",
    "description": "Postdoc at the Department of Molecular Medicine (MOMA), Aarhus University Hospital. PhD in Bioinformatics. MSc Cognitive Science."
  },
  "_downloads": {
    "count": 1977,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rearrr"
  },
  "_devurl": "https://github.com/ludvigolsen/rearrr",
  "_searchresults": 139,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/rearrr.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ludvigolsen/rearrr",
  "_realowner": "ludvigolsen",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2020-11-03"
    },
    {
      "version": "0.2.0",
      "date": "2020-11-12"
    },
    {
      "version": "0.3.0",
      "date": "2021-09-26"
    },
    {
      "version": "0.3.1",
      "date": "2022-08-28"
    },
    {
      "version": "0.3.2",
      "date": "2022-11-24"
    },
    {
      "version": "0.3.3",
      "date": "2023-01-19"
    },
    {
      "version": "0.3.4",
      "date": "2024-02-07"
    },
    {
      "version": "0.3.5",
      "date": "2025-03-03"
    }
  ],
  "_exports": [
    "angle",
    "apply_transformation_matrix",
    "center_max",
    "center_min",
    "centroid",
    "circularize",
    "closest_to",
    "closest_to_vec",
    "cluster_groups",
    "create_dimming_fn",
    "create_n_fn",
    "create_origin_fn",
    "degrees_to_radians",
    "dim_values",
    "distance",
    "expand_distances",
    "expand_distances_each",
    "FixedGroupsPipeline",
    "FixedGroupsTransformation",
    "flip_values",
    "flip_values_vec",
    "furthest_from",
    "furthest_from_vec",
    "generate_clusters",
    "GeneratedPipeline",
    "GeneratedTransformation",
    "hexagonalize",
    "is_most_centered",
    "median_index",
    "midrange",
    "min_max_scale",
    "most_centered",
    "pair_extremes",
    "pair_extremes_vec",
    "Pipeline",
    "position_max",
    "position_min",
    "quantile_index",
    "radians_to_degrees",
    "rev_windows",
    "rev_windows_vec",
    "roll_elements",
    "roll_elements_vec",
    "roll_values",
    "roll_values_vec",
    "rotate_2d",
    "rotate_3d",
    "shear_2d",
    "shear_3d",
    "shuffle_hierarchy",
    "square",
    "swirl_2d",
    "swirl_3d",
    "to_unit_length",
    "to_unit_length_vec",
    "transfer_centroids",
    "Transformation",
    "triangularize",
    "triplet_extremes",
    "triplet_extremes_vec",
    "vector_length",
    "wrap_to_range",
    "wrap_to_range_vec"
  ],
  "_help": [
    {
      "page": "angle",
      "title": "Calculate the angle to an origin",
      "concept": [
        "measuring functions"
      ],
      "topics": [
        "angle"
      ]
    },
    {
      "page": "apply_transformation_matrix",
      "title": "Apply transformation matrix to a set of columns",
      "concept": [
        "mutate functions"
      ],
      "topics": [
        "apply_transformation_matrix"
      ]
    },
    {
      "page": "center_max",
      "title": "Centers the highest value with values decreasing around it",
      "concept": [
        "rearrange functions"
      ],
      "topics": [
        "center_max"
      ]
    },
    {
      "page": "center_min",
      "title": "Centers the lowest value with values increasing around it",
      "concept": [
        "rearrange functions"
      ],
      "topics": [
        "center_min"
      ]
    },
    {
      "page": "centroid",
      "title": "Find the coordinates for the centroid",
      "concept": [
        "coordinate functions"
      ],
      "topics": [
        "centroid"
      ]
    },
    {
      "page": "circularize",
      "title": "Create x-coordinates so the points form a circle",
      "concept": [
        "forming functions"
      ],
      "topics": [
        "circularize"
      ]
    },
    {
      "page": "closest_to",
      "title": "Orders values by shortest distance to an origin",
      "concept": [
        "distance functions",
        "rearrange functions"
      ],
      "topics": [
        "closest_to",
        "closest_to_vec"
      ]
    },
    {
      "page": "cluster_groups",
      "title": "Move data points into clusters",
      "concept": [
        "clustering functions",
        "mutate functions"
      ],
      "topics": [
        "cluster_groups"
      ]
    },
    {
      "page": "create_dimming_fn",
      "title": "Create dimming_fn function",
      "concept": [
        "function creators"
      ],
      "topics": [
        "create_dimming_fn"
      ]
    },
    {
      "page": "create_n_fn",
      "title": "Create n_fn function",
      "concept": [
        "function creators",
        "n functions"
      ],
      "topics": [
        "create_n_fn"
      ]
    },
    {
      "page": "create_origin_fn",
      "title": "Create origin_fn function",
      "concept": [
        "coordinate functions",
        "function creators"
      ],
      "topics": [
        "create_origin_fn"
      ]
    },
    {
      "page": "degrees_to_radians",
      "title": "Conversion between radians and degrees",
      "topics": [
        "degrees_to_radians",
        "radians_to_degrees"
      ]
    },
    {
      "page": "dim_values",
      "title": "Dim values of a dimension based on the distance to an n-dimensional origin",
      "concept": [
        "distance functions",
        "mutate functions"
      ],
      "topics": [
        "dim_values"
      ]
    },
    {
      "page": "distance",
      "title": "Calculate the distance to an origin",
      "concept": [
        "distance functions",
        "measuring functions"
      ],
      "topics": [
        "distance"
      ]
    },
    {
      "page": "expand_distances",
      "title": "Expand the distances to an origin",
      "concept": [
        "distance functions",
        "expander functions",
        "mutate functions"
      ],
      "topics": [
        "expand_distances"
      ]
    },
    {
      "page": "expand_distances_each",
      "title": "Expand the distances to an origin in each dimension",
      "concept": [
        "distance functions",
        "expander functions",
        "mutate functions"
      ],
      "topics": [
        "expand_distances_each"
      ]
    },
    {
      "page": "FixedGroupsPipeline",
      "title": "Chain multiple transformations with different argument values per group",
      "concept": [
        "pipelines"
      ],
      "topics": [
        "FixedGroupsPipeline"
      ]
    },
    {
      "page": "FixedGroupsTransformation",
      "title": "FixedGroupsTransformation",
      "concept": [
        "transformation classes"
      ],
      "topics": [
        "FixedGroupsTransformation"
      ]
    },
    {
      "page": "flip_values",
      "title": "Flip the values around an origin",
      "concept": [
        "mutate functions"
      ],
      "topics": [
        "flip_values",
        "flip_values_vec"
      ]
    },
    {
      "page": "furthest_from",
      "title": "Orders values by longest distance to an origin",
      "concept": [
        "distance functions",
        "rearrange functions"
      ],
      "topics": [
        "farthest_from",
        "furthest_from",
        "furthest_from_vec"
      ]
    },
    {
      "page": "generate_clusters",
      "title": "Generate n-dimensional clusters",
      "concept": [
        "clustering functions"
      ],
      "topics": [
        "generate_clusters"
      ]
    },
    {
      "page": "GeneratedPipeline",
      "title": "Chain multiple transformations and generate argument values per group",
      "concept": [
        "pipelines"
      ],
      "topics": [
        "GeneratedPipeline"
      ]
    },
    {
      "page": "GeneratedTransformation",
      "title": "GeneratedTransformation",
      "concept": [
        "transformation classes"
      ],
      "topics": [
        "GeneratedTransformation"
      ]
    },
    {
      "page": "hexagonalize",
      "title": "Create x-coordinates so the points form a hexagon",
      "concept": [
        "forming functions"
      ],
      "topics": [
        "hexagonalize"
      ]
    },
    {
      "page": "is_most_centered",
      "title": "Find which data point is closest to the centroid",
      "concept": [
        "coordinate functions"
      ],
      "topics": [
        "is_most_centered"
      ]
    },
    {
      "page": "median_index",
      "title": "Find index of interest for each vector",
      "concept": [
        "n functions"
      ],
      "topics": [
        "median_index",
        "quantile_index"
      ]
    },
    {
      "page": "midrange",
      "title": "Find the midrange values",
      "concept": [
        "coordinate functions"
      ],
      "topics": [
        "midrange"
      ]
    },
    {
      "page": "min_max_scale",
      "title": "Scale to a range",
      "concept": [
        "scaling functions"
      ],
      "topics": [
        "min_max_scale"
      ]
    },
    {
      "page": "most_centered",
      "title": "Find the coordinates for the data point closest to the centroid",
      "concept": [
        "coordinate functions"
      ],
      "topics": [
        "most_centered"
      ]
    },
    {
      "page": "pair_extremes",
      "title": "Pair extreme values and sort by the pairs",
      "concept": [
        "rearrange functions"
      ],
      "topics": [
        "pair_extremes",
        "pair_extremes_vec"
      ]
    },
    {
      "page": "Pipeline",
      "title": "Chain multiple transformations",
      "concept": [
        "pipelines"
      ],
      "topics": [
        "Pipeline"
      ]
    },
    {
      "page": "position_max",
      "title": "Positions the highest values with values decreasing around it",
      "concept": [
        "rearrange functions"
      ],
      "topics": [
        "position_max"
      ]
    },
    {
      "page": "position_min",
      "title": "Positions the lowest value with values increasing around it",
      "concept": [
        "rearrange functions"
      ],
      "topics": [
        "position_min"
      ]
    },
    {
      "page": "rev_windows",
      "title": "Reverse order window-wise",
      "concept": [
        "rearrange functions"
      ],
      "topics": [
        "rev_windows",
        "rev_windows_vec"
      ]
    },
    {
      "page": "roll_elements",
      "title": "Roll elements",
      "concept": [
        "rearrange functions",
        "roll functions"
      ],
      "topics": [
        "roll_elements",
        "roll_elements_vec"
      ]
    },
    {
      "page": "roll_values",
      "title": "Shift values and wrap to range",
      "concept": [
        "mutate functions",
        "roll functions"
      ],
      "topics": [
        "roll_values",
        "roll_values_vec",
        "wrap_to_range",
        "wrap_to_range_vec"
      ]
    },
    {
      "page": "rotate_2d",
      "title": "Rotate the values around an origin in 2 dimensions",
      "concept": [
        "mutate functions",
        "rotation functions"
      ],
      "topics": [
        "rotate_2d"
      ]
    },
    {
      "page": "rotate_3d",
      "title": "Rotate the values around an origin in 3 dimensions",
      "concept": [
        "mutate functions",
        "rotation functions"
      ],
      "topics": [
        "rotate_3d"
      ]
    },
    {
      "page": "shear_2d",
      "title": "Shear the values around an origin in 2 dimensions",
      "concept": [
        "mutate functions",
        "shearing functions"
      ],
      "topics": [
        "shear_2d"
      ]
    },
    {
      "page": "shear_3d",
      "title": "Shear values around an origin in 3 dimensions",
      "concept": [
        "mutate functions",
        "shearing functions"
      ],
      "topics": [
        "shear_3d"
      ]
    },
    {
      "page": "shuffle_hierarchy",
      "title": "Shuffle multi-column hierarchy of groups",
      "concept": [
        "rearrange functions"
      ],
      "topics": [
        "shuffle_hierarchy"
      ]
    },
    {
      "page": "square",
      "title": "Create x-coordinates so the points form a square",
      "concept": [
        "forming functions"
      ],
      "topics": [
        "square"
      ]
    },
    {
      "page": "swirl_2d",
      "title": "Swirl the values around an origin in 2 dimensions",
      "concept": [
        "distance functions",
        "mutate functions",
        "rotation functions"
      ],
      "topics": [
        "swirl_2d"
      ]
    },
    {
      "page": "swirl_3d",
      "title": "Swirl the values around an origin in 3 dimensions",
      "concept": [
        "distance functions",
        "mutate functions",
        "rotation functions"
      ],
      "topics": [
        "swirl_3d"
      ]
    },
    {
      "page": "to_unit_length",
      "title": "Scale to unit length",
      "concept": [
        "scaling functions"
      ],
      "topics": [
        "to_unit_length",
        "to_unit_length_vec"
      ]
    },
    {
      "page": "transfer_centroids",
      "title": "Transfer centroids from one data frame to another",
      "concept": [
        "clustering functions"
      ],
      "topics": [
        "transfer_centroids"
      ]
    },
    {
      "page": "Transformation",
      "title": "Transformation",
      "concept": [
        "transformation classes"
      ],
      "topics": [
        "Transformation"
      ]
    },
    {
      "page": "triangularize",
      "title": "Create x-coordinates so the points form a triangle",
      "concept": [
        "forming functions"
      ],
      "topics": [
        "triangularize"
      ]
    },
    {
      "page": "triplet_extremes",
      "title": "Makes triplets of extreme values and sort by them",
      "concept": [
        "rearrange functions"
      ],
      "topics": [
        "triplet_extremes",
        "triplet_extremes_vec"
      ]
    },
    {
      "page": "vector_length",
      "title": "Calculate vector length(s)",
      "concept": [
        "measuring functions"
      ],
      "topics": [
        "vector_length"
      ]
    }
  ],
  "_readme": "https://github.com/ludvigolsen/rearrr/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "checkmate",
    "cli",
    "dplyr",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "plyr",
    "purrr",
    "R6",
    "Rcpp",
    "rlang",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_score": 6.931083074080367,
  "_indexed": true,
  "_nocasepkg": "rearrr",
  "_universes": [
    "ludvigolsen"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.5",
      "date": "2026-05-24T05:56:09.000Z",
      "distro": "noble",
      "commit": "03843f8acf45b2deb46ef506b22f2434ef9f758e",
      "fileid": "041d0d96016825bb07b7c8d1d72f16f8a06550b0c364aa8790e232d44a1b3ae2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ludvigolsen/actions/runs/26353330748"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.5",
      "date": "2026-05-24T05:56:01.000Z",
      "distro": "noble",
      "commit": "03843f8acf45b2deb46ef506b22f2434ef9f758e",
      "fileid": "6e08c5bdc1e8c58cf722e6a3609a6633dd002a2f0ef33efe3ab123788bc1ecf3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ludvigolsen/actions/runs/26353330748"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.5",
      "date": "2026-05-24T05:55:17.000Z",
      "commit": "03843f8acf45b2deb46ef506b22f2434ef9f758e",
      "fileid": "691928f59cd71b4d622a583dd61e742c141c85f83f63df41f87bcdd552e14350",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ludvigolsen/actions/runs/26353330748"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.5",
      "date": "2026-05-24T05:55:23.000Z",
      "commit": "03843f8acf45b2deb46ef506b22f2434ef9f758e",
      "fileid": "66c09c69eb174dd72eb6f825d11ece514d25592376a55bd37645358a333c5be6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ludvigolsen/actions/runs/26353330748"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.5",
      "date": "2026-05-24T05:55:57.000Z",
      "commit": "03843f8acf45b2deb46ef506b22f2434ef9f758e",
      "fileid": "db9c087fb5ecad500445f2bbb7dac9579a9e22c8456a1bc96ecf4c5ad9deb152",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ludvigolsen/actions/runs/26353330748"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.5",
      "date": "2026-05-24T05:55:08.000Z",
      "commit": "03843f8acf45b2deb46ef506b22f2434ef9f758e",
      "fileid": "c304a94e54676e367bd5d9e01f5598fe9292bcef300c6dad88103fc06abc2998",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ludvigolsen/actions/runs/26353330748"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.5",
      "date": "2026-05-24T05:55:07.000Z",
      "commit": "03843f8acf45b2deb46ef506b22f2434ef9f758e",
      "fileid": "50a838b6d297fd59458656408f47626127393ad160c17f4d61106f31def2baff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ludvigolsen/actions/runs/26353330748"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.5",
      "date": "2026-05-24T05:55:26.000Z",
      "commit": "03843f8acf45b2deb46ef506b22f2434ef9f758e",
      "fileid": "334991e95108b6defa07a39c9a49511e859ae0ec6b1732ca030ba58ab9a87280",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ludvigolsen/actions/runs/26353330748"
    }
  ]
}