Learn R Programming

psychmeta (version 2.6.5)

filter_r: Filter to detect and remove impossible values in vectors of correlations and sample sizes.

Description

Filter to detect and remove impossible values in vectors of correlations and sample sizes.

Usage

filter_r(r_vec, n_vec)

Value

List of filtered correlations and sample sizes.

Arguments

r_vec

Vector of correlations.

n_vec

Vector of sample sizes.

Examples

Run this code
## Not run
## filter_r(r_vec = c(-.3, .5, 1.1), n_vec = c(100, 100, 100))
## filter_r(r_vec = c(-.3, .5, .8), n_vec = c(Inf, 100, 100))
## filter_r(r_vec = c(-.3, .5, .8), n_vec = c(2, 100, 100))

Run the code above in your browser using DataLab