Open tpemartin opened 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.)
https://github.com/AmyChen20021003/110-1-r4ds-main/blob/cdb9e26f0a1f2b882959d364d0c8cfae347ed031/4-11.Rmd#L2
https://github.com/raychiu135/110-1-r4ds-main/blob/5b4622759a87d29aedc592bdc677bcdf2195c1a4/exercise_4.11.rmd#L2
https://github.com/linttttt/110-1-r4ds-main/blob/63b866865f5c68596af5a38200bd4acdb4369b3d/studyCH4(EX).Rmd#L86
https://github.com/Vincent23412/110-1-r4ds-main/blob/22fd3b28e9ff751adbf7f00a6e7b3f37c60d14d0/20211212.Rmd#L29
Exercise 4.11 For the following two vectors:
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.)