Basic functions

Try out a few common, basic functions to learn what they do and how they work:

Here’s a couple more to foreshadow where we’ll be going:

Objects

Make some objects using the following assignments:

w <- 1
x <- 1
y <- 2
z <- 3

Using only these objects, try writing code to answer the following questions:

Data types

Try answering some of these questions before running any code - reason through the commands, then run the code and see if you were correct:

(0.1 + 0.2) == 0.3
## [1] FALSE

Page sources:

Some content on this page has been modified from other courses, including:


EMSE 6574, Sec. 11: Programming for Analytics (Fall 2019)
George Washington University | School of Engineering & Applied Science
Dr. John Paul Helveston | jph@gwu.edu | Mondays | 6:10–8:40 PM | Phillips Hall 108 | |
This work is licensed under a Creative Commons Attribution 4.0 International License.
See the licensing page for more details about copyright information.
Content 2019 John Paul Helveston