Skip to content

Commit

Permalink
delete the added example of basic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ntluong95 committed Jun 18, 2024
1 parent 0a63cb9 commit 65e1e0a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions new_pages/basics.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -306,14 +306,6 @@ This basics section on functions explains:
sqrt(49)
```

Add another example of basic function in R

```{r basics_function_example2}
# Create a vector of numbers
log(100)
```


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}
Expand Down

0 comments on commit 65e1e0a

Please sign in to comment.