Skip to content

Commit

Permalink
add table 2
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed Nov 27, 2019
1 parent dd3bb8d commit fa7fed3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions content/post/practical-oz-fetp-data-management.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,16 @@ Almost everything in R is done through functions. A function is a piece of code

**Table 2:** Some commonly used R commands

```{r, fig.align='center', out.width = "750px", echo=FALSE}
knitr::include_graphics("table2_r_commands.png")
```

|Command |Explanation |
|------------------|--------------------------------------------------------------------------------------------------------------|
|`str(dataset)` |Describes the internal structure of the dataset or R object |
|`summary(dataset)`|Summarizes information from all variables in the dataset |
|`print(dataset)` |Shows all observations in the dataset |
|`dataset$age` |Access the 'age' column in the dataset |
|`View(dataset)` |Allows you to browse all of a subset of your data |
|`table()` |Tabulates one or more variables |
|`order()` |Will order the observations in **increasing order** of the values of a particular variable or set of variables|

### The summary command

Expand Down

0 comments on commit fa7fed3

Please sign in to comment.