@@ -406,8 +406,8 @@ Let's create a few more vectors to play around with:
406
406
# Some interesting human SNPs
407
407
# while accuracy is important, typos in the data won't hurt you here
408
408
409
- snps <- c(' rs53576', ' rs1815739', ' rs6152', ' rs1799971' )
410
- snp_chromosomes <- c('3', '11', 'X', '6' )
409
+ snps <- c(" rs53576", " rs1815739", " rs6152", " rs1799971" )
410
+ snp_chromosomes <- c("3", "11", "X", "6" )
411
411
snp_positions <- c(8762685, 66560624, 67545785, 154039662)
412
412
```
413
413
@@ -638,14 +638,14 @@ c("ACTN3","APOA5") %in% snp_genes
638
638
> ## Review Exercise 2
639
639
>
640
640
> Add the following values to the specified vectors:
641
- > a. To the `snps` vector add: ' rs662799'
641
+ > a. To the `snps` vector add: " rs662799"
642
642
> b. To the `snp_chromosomes` vector add: 11
643
643
> c. To the `snp_positions` vector add: 116792991
644
644
>
645
645
>> ## Solution
646
646
>>
647
647
>> ```{r, purl = FALSE}
648
- >> snps <- c(snps, ' rs662799' )
648
+ >> snps <- c(snps, " rs662799" )
649
649
>> snps
650
650
>> snp_chromosomes <- c(snp_chromosomes, "11") # did you use quotes?
651
651
>> snp_chromosomes
0 commit comments