Skip to content

Commit bd42ebf

Browse files
Update 01-r-basics.Rmd
fixes #183
1 parent f178b4c commit bd42ebf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

episodes/01-r-basics.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ Let's create a few more vectors to play around with:
406406
# Some interesting human SNPs
407407
# while accuracy is important, typos in the data won't hurt you here
408408
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")
411411
snp_positions <- c(8762685, 66560624, 67545785, 154039662)
412412
```
413413

@@ -638,14 +638,14 @@ c("ACTN3","APOA5") %in% snp_genes
638638
> ## Review Exercise 2
639639
>
640640
> Add the following values to the specified vectors:
641-
> a. To the `snps` vector add: 'rs662799'
641+
> a. To the `snps` vector add: "rs662799"
642642
> b. To the `snp_chromosomes` vector add: 11
643643
> c. To the `snp_positions` vector add: 116792991
644644
>
645645
>> ## Solution
646646
>>
647647
>> ```{r, purl = FALSE}
648-
>> snps <- c(snps, 'rs662799')
648+
>> snps <- c(snps, "rs662799")
649649
>> snps
650650
>> snp_chromosomes <- c(snp_chromosomes, "11") # did you use quotes?
651651
>> snp_chromosomes

0 commit comments

Comments
 (0)