diff --git a/slide_r_elements_1.Rmd b/slide_r_elements_1.Rmd index 0c8696c..7b0d8a6 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