Skip to content

Commit

Permalink
Fix #142
Browse files Browse the repository at this point in the history
  • Loading branch information
poterlowicz-lab authored Jan 11, 2023
1 parent 40f128e commit a5c7ea0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _episodes_rmd/01-r-basics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -486,12 +486,10 @@ snp_genes
We can also explicitly rename or add a value to our index using double bracket notation:

```{r, purl = FALSE}
snp_genes[7]<- "APOA5"
snp_genes[6]<- "APOA5"
snp_genes
```

Notice in the operation above that R inserts an `NA` value to extend our vector so that the gene "APOA5" is an index 7. This may be a good or not-so-good thing depending on how you use this.

> ## Exercise: Examining and subsetting vectors
> Answer the following questions to test your knowledge of vectors
>
Expand Down

0 comments on commit a5c7ea0

Please sign in to comment.