V1 Flashcards
R as a calculator
1
Q
first computing/ algorithm
A
- Charles Babbage: Analyical Engine
- Ada Lovelace: First Algorithm
- Alan M. Turing: Turing Machine
2
Q
First Computer
A
- built 1941, destroyed 1943
- named Z3
- built by Konrad Zuse
- to calculate wing flutter
3
Q
ENIAC
A
- Electronic Numerical Integrator and Computer
- electronic general-purpose computer
- Turing-complete
- digital
- capable of being reprogrammed
- loops, branches and subroutines
4
Q
programming language
A
low level: - punch cards - assembly mid level: - C high level: - LISP - COBOL
5
Q
R-Programming language
A
- free and open source
- statistical computing
- graphics
- written in : R, Fortran, C
- operating system agnostic
- linear and non.linear models
- built-in testing and help
- many add-on packages available (4000+)
6
Q
exponents (coding)
A
- 5^2 or 5**2
7
Q
what is euclidean division + coding
A
- how often one number fits into the other (39/100, 2 is the euclidean divisor)
- %/%
8
Q
what is euclidean division remainder + coding
A
- how often one number fits into the other - what remains after (39/100, 2 is the euclidean divisor, 39*2-> 78 -> 22 left over
%%
9
Q
special numerical constant (coding)
A
infinite - inf
NaN - not a number
NA - missing
10
Q
Built in character constants (coding)
A
- LETTERS: 26 upper case letters
- letters_ 26 lower case letters
- month.abb: 12 months 3-letter abbreviations
- month.name: 12 months
- pi: ratio of the circumference of a circle to its diameter
11
Q
imaginary numbers (coding)
A
as 0i -> instead of sqrt(-1) do sqrt(-1+0i)
12
Q
basic trigonometry functions (coding)
A
- sin, cos, tan, asin, etc
13
Q
logarithms (coding)
A
log(5) - natural log of 5
log10(5) - base 10 log of 5
exp(1) - e^1
14
Q
How to manage your Session - Work directive (4)
A
- getwd(): where does R save/retrieve files
- dir(): what files are there
- setwd(): set another place to save/retrieve files
- Is(): what is in the current environment
15
Q
How to handle package and save things + end R
A
- install.packages(“qtl”) - install package
- library(qtl) - load a package
- save(object, file = “Your.RData”) - save object as binary
- save.image(“Your-RData”) - save the whole environment
- q(“no”) - quit the r session