From 21bb3d91b86a7a4d0711fe13ce11d1e58a01b47d Mon Sep 17 00:00:00 2001 From: Luong Nguyen Thanh Date: Sun, 16 Jun 2024 17:45:58 +0200 Subject: [PATCH] remove the code chunk --- new_pages/basics.qmd | 6 ------ 1 file changed, 6 deletions(-) diff --git a/new_pages/basics.qmd b/new_pages/basics.qmd index 1b7ba623..ca13857f 100644 --- a/new_pages/basics.qmd +++ b/new_pages/basics.qmd @@ -306,12 +306,6 @@ This basics section on functions explains: sqrt(49) ``` -Another example of function -```{r basics_function_mean} -# Calculate the mean of a vector of numbers -mean(c(1, 2, 3, 4, 5)) -``` - The object provided to a function also can be a column in a dataset (see the [Objects](#objects) section for detail on all the kinds of objects). Because R can store multiple datasets, you will need to specify both the dataset and the column. One way to do this is using the `$` notation to link the name of the dataset and the name of the column (`dataset$column`). In the example below, the function `summary()` is applied to the numeric column `age` in the dataset `linelist`, and the output is a summary of the column's numeric and missing values. ```{r basics_functions_summary}