Skip to content

Commit 92bd1f4

Browse files
Fix #142
1 parent c13eefd commit 92bd1f4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

episodes/01-r-basics.Rmd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,12 +486,10 @@ snp_genes
486486
We can also explicitly rename or add a value to our index using double bracket notation:
487487

488488
```{r, purl = FALSE}
489-
snp_genes[7]<- "APOA5"
489+
snp_genes[6]<- "APOA5"
490490
snp_genes
491491
```
492492

493-
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.
494-
495493
> ## Exercise: Examining and subsetting vectors
496494
> Answer the following questions to test your knowledge of vectors
497495
>

0 commit comments

Comments
 (0)