exercise_1_1: ISWR exercise 1.1

Description Usage Arguments Value Examples

View source: R/exercise_1_1.R

Description

Solution to exercise 1.1 from Basics in Dalgaard P. Introductory statistics with R. New York : Springer; 2008.

“How would you check whether two vectors are the same if they may contain missing (NA) values? (Use of the identical function is considered cheating!)”

Usage

1
exercise_1_1(vector_one, vector_two)

Arguments

vector_one

The first vector to be checked.

vector_two

The second vector to be checked.

Value

Returns TRUE or FALSE.

Examples

1
exercise_1_1(c(1, 2, NA, 4), c(1, NA, 3, 4))

JonasEngstrom/prexRiswr documentation built on Dec. 18, 2021, 1:41 a.m.