<jupyter_start><jupyter_text>Functions Dealing with missing arguments<jupyter_code>add_two_numbers <- function(a, b) {
  if(missing(a)) {
    a <- 0
  }
  if(missing(b)) {
    b <- 0
  }
  a + b
}
add_two_numbers(1)
add_two_numbers(1, 9)
add_three_numbers <- function(a, b, c) {
  if(missing(a)) {
    stop("Please enter a value for a")
  }
  if(missing(b)) {
    stop("Please enter a value for b")
  }
  if(missing(c)) {
    stop("Please enter a value for c")
  }
  a + b + c
}
add_three_numbers(2, 3, 4)
add_three_numbers(1, 3)<jupyter_output><empty_output><jupyter_text>Data Structures Scalar<jupyter_code>1<jupyter_output><empty_output><jupyter_text>Vector<jupyter_code>x <- c(1, 2, 3)
str(x)<jupyter_output>num [1:3] 1 2 3<jupyter_text>List<jupyter_code>y <- c("Hello", 1)
str(y)<jupyter_output>chr [1:2] "Hello" "1"<jupyter_text>Matrix<jupyter_code><jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15932203389830507, 'fraction_numerical': 0.02598870056497175, 'mean_word_length': 5.328571428571428, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 19, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '456848', 'license': 'MIT', 'n_tokens_mistral': 417, 'n_tokens_neox': 389, 'n_words': 67, 'path': 'Functions.ipynb', 'repo_name': 'WriterTyper/descriptive-stats', 'size': '885'}