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
Tag: R Language
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
Introduction to R
Hello again! Last time we installed R-Studio. Now we will look at some useful commands and syntax. You can use R directly from the terminal or from R-Studio. To use R from the terminal type “sudo R” at the terminal prompt. R loads in interactive mode. You will be presented by the prompt >. Each … Continue reading Introduction to R
Installing R on Ubuntu
Hello! R is getting traction with computer scientists and statisticians, and Clounce decided to ride on this adventure. By no means, the R blog roll is intended to be an exhaustive survey of how R works and all its function. But the purpose of this blog roll about R is intended to get you started … Continue reading Installing R on Ubuntu