From 95295fe41a590f571290a27f3eadc8a7f642fcd7 Mon Sep 17 00:00:00 2001 From: Nima Rafati Date: Sun, 27 Oct 2024 22:17:06 +0100 Subject: [PATCH] Update the slides --- slide_r_elements_1.Rmd | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/slide_r_elements_1.Rmd b/slide_r_elements_1.Rmd index 0c8696c8..7b0d8a64 100644 --- a/slide_r_elements_1.Rmd +++ b/slide_r_elements_1.Rmd @@ -275,27 +275,6 @@ and also: Inf - Inf # Not a Number ``` ---- -name: cplx_numbers - -# Complex number type - -Core R supports complex numbers. - -```{r cplx,echo=TRUE} -z = 7 + 4i # create a complex number -z -class(z) -typeof(z) -is.complex(z) -``` - -```{r cplx2,echo=TRUE} -sqrt(-1) # not treated as cplx number -sqrt(-1 + 0i) # now a proper cplx number -sqrt(as.complex(-1)) # an alternative way -``` - --- name: logical_type