tpemartin / 110-1-r4ds-main

MIT License
3 stars 73 forks source link

Exercise 4.11 For the following two vectors: #43

Open tpemartin opened 2 years ago

tpemartin commented 2 years ago

Exercise 4.11 For the following two vectors:

num_input <- 
  c(1,NA,NA,1,1,NA,1,1,1,NA,NA,1,NA,NA,NA,1,NA,1,NA,1,1,1,1,NA,NA,NA,NA,NA,NA,1)
chr_input <- 
  c('NA','1','1','1','NA','NA','1','1','1','1','NA','1','NA','1','1','1','NA','NA','NA','1','NA','NA','NA','NA','NA','1','1','NA','NA','NA')

Find all NA’s locations in num_input.

Find all 'NA'’s locations in chr_input. (Be careful. Only NA truly mean not available. 'NA' is an available value with character phrase NA as the value.)

AmyChen20021003 commented 2 years ago

https://github.com/AmyChen20021003/110-1-r4ds-main/blob/cdb9e26f0a1f2b882959d364d0c8cfae347ed031/4-11.Rmd#L2

raychiu135 commented 2 years ago

https://github.com/raychiu135/110-1-r4ds-main/blob/5b4622759a87d29aedc592bdc677bcdf2195c1a4/exercise_4.11.rmd#L2

linttttt commented 2 years ago

https://github.com/linttttt/110-1-r4ds-main/blob/63b866865f5c68596af5a38200bd4acdb4369b3d/studyCH4(EX).Rmd#L86

Vincent23412 commented 2 years ago

https://github.com/Vincent23412/110-1-r4ds-main/blob/22fd3b28e9ff751adbf7f00a6e7b3f37c60d14d0/20211212.Rmd#L29