diff --git a/content/Practice.md b/content/Practice.md
index 6d2bccc..7b83578 100644
--- a/content/Practice.md
+++ b/content/Practice.md
@@ -15,7 +15,7 @@ The idea is not to solve the probelm the same way that is here. The important th
fruits <- c("one -pple", "two pe-rs", "three b-n-n-s")
```
herbarium_inventory <- str_replace_all(" ", "", herbarium_inventory) herbarium_inventory <- str_replace_all(" ", "", herbarium_inventory) herbarium_inventory$deposited <- ifelse(grepl("y(es)", herbarium_inventory$deposited), 1, 0) herbarium_inventory$deposited <- ifelse(grepl("y(es)", herbarium_inventory$deposited), 1, 0) herbarium_inventory$dates <- gsub("-(0?3-|(?i)mar)-", "-March-", herbarium_inventory$dates) herbarium_inventory$dates <- gsub("-(0?3-|(?i)mar)-", "-March-", herbarium_inventory$dates) url.short = gsub("https://", "", url) url.short = gsub("(www|www2)(\\.)", "", url.short) Answer
-fruits = str_replace_all(fruits, "-", "a")
+ fruits = str_replace_all(fruits, "-", "a")
Answer
-fruitcount$count = gsub("-", "e", fruitcount$count)
+ fruitcount$count = gsub("-", "e", fruitcount$count)
Answer
-fruits = str_replace(fruits, "[aeiou]", "-")
+ fruits = str_replace(fruits, "[aeiou]", "-")
Answer
1. Remove all spaces
- Answer
-fruitcount = data.frame(lapply(fruitcount, gsub, pattern = "e", replacement = "-", fixed = TRUE))
+ fruitcount = data.frame(lapply(fruitcount, gsub, pattern = "e", replacement = "-", fixed = TRUE))
Answer
-## get rid of the parts of the very start of the urls
-url.short = gsub("https://", "", url)
-
-## get rid of the rest of the start start of URLs that is not interesting rigth now
-url.short = gsub("(www|www2)(\\.)", "", url.short)
-url.short
-## get rid of .ca and everything at the end
-url.short = gsub("\\.ca.*", "", url.short)
-url.short
+1. get rid of the parts of the very start of the urls
+
url.short = gsub("\\.ca.*", "", url.short)