Suppose you’re on a game show, and you’re given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what’s behind the doors, opens another door, say No. 3, which has a goat. He then says to you, … Continue reading R Simulation – Monty Hall Problem
Author: Joseph D'Emanuele
R Characters
In today’s blog we take a look at string in R. Strings in R are represented by character objects. Let’s keep Clounce in a variable: > name <- "Clounce" Now let’s print it on screen: > print(name) [1] "Clounce" Numbers can be converted to characters using the as.character function. Let’s look at an example: > … Continue reading R Characters
