This lesson is still being designed and assembled (Pre-Alpha version)

Challenge: Simple Nested

Please write your answers for the simple nested challenge below

HTML <div>

Challenge

Use the paste() function to concatenate the strings “hello” and “there” in R

Solution

paste("hello", "there")
[1] "hello there"

{dovetail}

r setup, include = FALSE} library(dovetail)

Challenge

Use the paste() function to concatenate the strings “hello” and “there” in R

solution

paste("hello", "there")
[1] "hello there"

pandoc fenced div

Challenge

Use the paste() function to concatenate the strings “hello” and “there” in R

solution

paste("hello", "there")
[1] "hello there"

Challenge: Complex Nested

Please write your answers for the complex nested challenge below

HTML <div>

Challenge

Use the paste() function to concatenate the strings “hello” and “there” in R

School Solution

paste("hello", "there")
[1] "hello there"

Great! Now use paste0() to paste together “mono” and “rail” to make “monorail”

Fast Solution

paste0("mono", "rail")
[1] "monorail"

{dovetail}

r setup, include = FALSE} library(dovetail)

Challenge

Use the paste() function to concatenate the strings “hello” and “there” in R

School Solution

paste("hello", "there")
[1] "hello there"

Great! Now use paste0() to paste together “mono” and “rail” to make “monorail”

Fast Solution

paste0("mono", "rail")
[1] "monorail"

pandoc fenced div

Challenge

Use the paste() function to concatenate the strings “hello” and “there” in R

School Solution

paste("hello", "there")
[1] "hello there"

Great! Now use paste0() to paste together “mono” and “rail” to make “monorail”

Fast solution

paste0("mono", "rail")
[1] "monorail"