<jupyter_start><jupyter_text>데이터 중 결측지 제거 함수 만들기<jupyter_code>na_data <- c(1,2,NA,3,4,NA,5,6,6)
sum(na_data)
fn_na <- function(a) {
  value <-ifelse(!is.na(a),a,0)
  print(value)
}
na_data1 <- fn_na(na_data)
sum(na_data1)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19123505976095617, 'fraction_numerical': 0.0398406374501992, 'mean_word_length': 7.4, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '586093', 'license': 'MIT', 'n_tokens_mistral': 149, 'n_tokens_neox': 153, 'n_words': 16, 'path': '_pages/Language/R/src/excel_data.ipynb', 'repo_name': 'shpimit/shpimit.github.io', 'size': '251'}