Learn R Programming

manydata (version 1.0.1)

resolving: Resolving multiple observations of the same variable into one

Description

Resolving multiple observations of the same variable into one

Usage

resolve_coalesce(.data, vars)

resolve_unite(.data, vars)

resolve_min(.data, vars)

resolve_max(.data, vars)

resolve_random(.data, vars)

resolve_precision(.data, vars)

Arguments

.data

A data frame or tibble containing the variables.

vars

A vector of variables from .data to be resolved or converged.

Unite

Note that uniting always returns a character/string vector. Values are separated by commas and a set is contained within braces.

Examples

Run this code
test <- data.frame(bloop.x = c(1,6,NA), 
                   bloop.y = c(2,NA,3), bloop = c(NA,3,4))
resolve_coalesce(test)
resolve_unite(test)
resolve_min(test)
resolve_max(test)
resolve_random(test)
resolve_precision(test)

Run the code above in your browser using DataLab