BIO503 - Lecture 1 Introduction to the R language
|
|
|
- Polly Merritt
- 9 years ago
- Views:
Transcription
1 BIO503 - Lecture 1 Introduction to the R language Bio503 January 2008, Aedin Culhane. I R, S and S-plus What is R? ˆ R is an environment for data analysis and visualization ˆ R is an open source implementation of the S language ˆ S-Plus is a commercial implementation of the S language ˆ The current version of R is which was released on ˆ R can be downloaded and more info at Short R History ˆ 1991: Ross Ihaka and Robert Gentleman begin work on a project that will ultimately become R ˆ 1993: The first announcement of R ˆ 1995: R available by ftp ˆ 1996: A mailing list is started and maintained by Martin Maechler at ETH ˆ 1997: The R core group is formed ˆ 1998: The Omega project began in July The aim of the project was to develop software to enable the statistical computing languages, S, R, and Lisp-Stat work with web-based software and Java, the Java virtual machine and other programming languages. ˆ 2000: R is released ˆ 2001: Bioconductor, an open source and open development software project for the analysis and comprehension of genomic data, using R started in Fall ˆ 2008: R current release is version There are generally 2 releases per year. ˆ 2008: Bioconductor, current release is version 2.1 (released 8 October, 2007). This release is designed for R Bioconductor coincide and follow R release. ˆ 2008: The Omegahat project contains code to enable connectivity between R and Java, XML, perl, python, curl/ssoap, xlisp and some functions that talk to Matlab, and SAS. 1
2 R environment ˆ extensive, coherent, integrated collection of tools for data analysis ˆ language for expressing statistical models ˆ effective data handling and storage facility ˆ a suite of operators for calculations on matrices ˆ graphical facilities for data analysis and display (computer screen and/or hardcopy) ˆ a programming language including conditionals, loops and input/output facilities ˆ extended rapidly by a large collection of packages. Currently, as of 1/5/2008, there are over 1,250 actively maintained packages on CRAN. ˆ In additional the Bioconductor project contains approx 234 packages for the analysis of microarray/proteomic data. II Obtaining and managing R R can be downloaded from the website: See additional notes which give a very detailed description on downloading and installing R (and Bioconductor). R is available for all platforms: Unix/Linux, Windows and Mac. In this course, we will concentrate on the Windows implementation. The differences between the platforms are minor, so most of the material is applicable to the other platforms. II.1 Setting R default properties (on Windows) The first thing to do when starting an R session, is to ensure that you will be able to find your data and also that your output will be saved to a useful location on your computer hard-drive. Therefore, check the working directory. This maybe set by default to the depths of the operating system (C:/program files/r), which is a poor working location. You may wish to change the default start location by right mouse clicking on the R icon on the desktop/start menu and changing the Start In property. For example make a folder C:/work, and make this as a Start in folder. Alternatively you can change your working directory, once you start R (see below) II.2 Useful related software: ˆ An alternative to the standard R interface, is RCMDR Misc/Rcmdr/, it has a few more drop down menus and buttons than the standard R in windows. For a more complete list of graphical user (point and click) interfaces for R, that are in development see 2
3 ˆ Editors (which color your code) for R, include Tinn-R WinEdt text editor, and ESS (Emacs speaks statistics) On Linux, I like to use Kate ˆ Nice editors for LaTeX include Texmacs a WYSIWYG editor for TeX and Texmaker III Becoming familiar with the default R interface ˆ Start up R (go to the program Menu and find it in the Statistics folder) ˆ First, notice the different menus and icons in R. On the menu bar, there are the menus: File - load script, load/save session (workspace) or command history. Change Directory Edit - Cut/Paste. GUI preferences View Misc - stop computations, list/remove objects in session Packages - allows one to install new, update packages Windows Help - An essential resource! ˆ The icons below will allow one to open script (.R file), load image (previous R session,.rdata file) save.r script copy and paste stop a computation (this can be an important button, but the ESC also works!) print. IV Starting out - Changing directory When you start R, and see the prompt >, it may appear as if nothing is happening. This prompt is now awaiting commands from you. This can be daunting to the new user, however it is easy to learn a few commands and get started. First, to change the directory after you have started R. Use the file menu, to change directory: File -> Change dir If you wish to type R commands to set or change working directories, use the following > getwd() To change the directory: 3
4 setwd("c:/work") getwd() I may create a new working directory for each R session which I call projectnamedate (eg colon- Jan1308). If you have files in the working directory, you can see the contents of your working folder using the functions/commands > dir() > dir(pattern = ".txt") V R Packages You will very likely want to install additional packages. By default, R is packaged with a small number of essential packages, however as we saw there are many contributed R packages. You can install additional packages using the menu Packages or using the following commands To update and install packages use: > install.packages("mass") > update.packages("mass") Once you have installed a package, you can load a library in your current R session > library() > library(mass) > data() VI Getting help with functions and features There are many resources for help in R. ˆ Emmanuel Paradis has an excellent beginners guide to R available from org/doc/contrib/paradis-rdebuts_en.pdf ˆ There is an introduction to R classes and objects on the R website org/doc/manuals/r-intro.html and also see Tom Guirkes manual at edu/~tgirke/documents/r_biocond/r_biocondmanual.html ˆ Tom Short s provides a useful short R reference card at contrib/short-refcard.pdf Within R, you can find help on any command (or find commands) using the follow: ˆ If you know the command (or part of it) 4
5 > help(lm) > `?`(matrix) > apropos("mean") > example(rep) The last command will run all the examples included with the help for a particular function. If we want to run particular examples, we can highlight the commands in the help window and submit them by typing Ctrl^V ˆ If you don t know the command and want to do a keyword search for it. > help.search("combination") > help.start() help.search will open a html web browser or a MSWindows help browser (depending on the your preferences) in which you can browse and search R documentation. ˆ Finally, there is a large R community who are incredibly helpful. There is a mailing list for R, Bioconductor and almost every R project. It is useful to search the archives of these mailing lists. Frequently you will find someone encountered the same problem as you, and previously asked the R mailing list for help (and got a solution!). VII Interactive use of the R Editor Note on the command line, the default prompt starts with an '>' If the command is not complete on one line, the continuation prompt is + Type q() to quit the program VII.1 R as a big calculator Type the following into an R session (or copy and paste from this document). > [1] 4 > 2 * 2 [1] 4 > 2 * 100/4 [1] 50 5
6 > 2 * 100/4 + 2 [1] 52 > 2 * 100/(4 + 2) [1] > 2^10 [1] 1024 > log(2) [1] > tmpval <- log(2) > tmpval [1] > exp(tmpval) [1] 2 > rnorm(5) [1] > history() Note you can recover previous commands using the up and down arrow keys. Indeed you can recover the previous expressions entered (default 25) into the R session using the function history. rnorm generates 10 random numbers from a normal distribution. Type this a few times (hint: the up arrow key is useful). Note even in the simple use of R as a calculator, it is useful to store intermediate results, (tmpval=log(2)). In this case, we assigned a symbolic variable tmpval. Note when you assign a value to such a variable, there is no immediate visible result. We need to print(tmpval) or just type tmpval in order to see what value was assigned to tmpval 6
7 VIII VIII.1 Basic operators Comparison operators ˆ equal: == ˆ not equal:!= ˆ greater/less than: > < ˆ greater/less than or equal: >= <= > 1 == 1 [1] TRUE VIII.2 Logical operators ˆ AND & Returns TRUE if both comparisons return TRUE. > x <- 1:10 > y <- 10:1 > x > y & x > 5 [1] FALSE FALSE FALSE FALSE FALSE TRUE TRUE TRUE TRUE TRUE ˆ OR Returns TRUE where at least one comparison returns TRUE. > x == y x!= y [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE ˆ NOT! The! sign returns the negation (opposite) of a logical vector. >!x > y [1] TRUE TRUE TRUE TRUE TRUE FALSE FALSE FALSE FALSE FALSE VIII.3 Default R Editor ˆ Within R, one can open an editor using the menu command File -> New script ˆ Can type commands in the editor ˆ Highlight the commands and type Ctrl^R to submit the commands for R evaluation ˆ Evaluation of the commands can be stopped by pressing the Esc key or the Stop button ˆ Saving (Ctrl^S) and opening saved commands (Ctrl^O) ˆ Can open a new editor by typing Ctrl^N 7
8 IX A few important points on R ˆ R is case sensitive, i.e. mydata and Mydata are different names ˆ Elementary commands: expressions are evaluated, printed and value lost; assignments evaluate expressions, passes value to a variable, but not automatically printed > 2 * 5^2 [1] 50 > x <- 2 * 5^2 > print(x) [1] 50 ˆ Assignment operators are: '<-', '=', '->' > 2 * 5^2 [1] 50 > y <- 2 * 5^2 > z <- 2 * 5^2 > z <- 2 * 5^2 > print(y) [1] 50 > x == y [1] TRUE > y == z [1] TRUE ˆ '<-' is the most popular assignment operator, and '=' is a recent addition. There is no space between < and It is '<-' (less than and a minus symbol) Although, unlikely, you may also see old code using '_', these is NOT used any more in R. When assigning a value spaces are ignored so 'z<-3' is equivalent to 'z <- 3' ˆ Arguments (parameters) to a function calls f(x), PROC are enclosed in round brackets. Even if no arguments are passed to a function, the round brackets are required. print(x) getwd() 8
9 ˆ Comments can be put anywhere. To comment text, insert a hashmark #. Everything following it to end of the line is commented out (ignored, not evaluated). > print(y) [1] 50 ˆ Note on brackets. It is very important to use the correct brackets. Bracket Function () To set priorities 3*(2+4). Function calls f(x) [] Indexing in vectors, matrices, data frames {} Creating new functions. Grouping commands {mean(x); var(x)} [[]] Indexing of lists ˆ == and = have very different uses in R. == is a binary operator, which test for equality (A==B determines if A is equal to B ). ˆ Quotes, you can use both double or single quotes, as long as they are matched. ˆ For names, normally all alphanumeric symbols are allowed plus '.' and '_' Start names with a character [Aa-Zz] not a numeric character [0-9]. Avoid using single characters or function names t, c, q, diff, mean ˆ Commands can be grouped together with braces ('{' and '}'). ˆ Missing values called represented by NA IX.1 Coding Recommendations These are the coding recommendations from the Bioconductor project, and whilst you do not have to do these, it is handy to adopt good working practice when you learn a new language. 1. Indentation ˆ Use 4 spaces for indenting. No tabs. ˆ No lines longer than 80 characters. No linking long lines of code using ; 2. Variable Names ˆ Use camelcaps: initial lowercase, then alternate case between words. 3. Function Names ˆ Use camelcaps: initial lower case, then alternate case between words. ˆ In general avoid., as in some.func Whilst beyond the scope of this class, R packages are written to either S3 or S4 standards. In the S3 class system, some(x) where x is class func will dispatch to this function. Use a. if the intention is to dispatch using S3 semantics. 9
10 4. Use of space ˆ Always use space after a comma. This: a, b, c. Not: a,b,c. ˆ No space around = when using named arguments to functions. This: somefunc(a=1, b=2), not: somefunc(a = 1, b = 2). ˆ Space around all binary operators: a == b. 5. Comments 6. Misc ˆ Use ## to start comments. ˆ Comments should be indented along with the code they comment. ˆ Use "<-" not = for assignment. 10
11 X Objects ˆ Everything (variable, functions etc) in R is an object ˆ Every object has a class X.1 Managing R Objects R creates and manipulates objects: variables, matrices, strings, functions, etc. objects are stored by name during an R session. During a R session, you may create many objects, if you wish to list the objects you have created in the current session use the command > objects() > ls() The collection of objects is called workspace. If you wish to delete (remove) objects, issue the commands: rm(x,y,z, junk) ls() where x, y, junk were the objects created during the session. Note rm(list=ls()) will remove everything. Use with caution X.2 Types of R objects Objects can be thought of as a container which holds data or a function. The most basic form of data is a single element, such as a single numeric or a character string. However one can t do statistics on single numbers! Therefore there are many other objects in R. ˆ A vector is an ordered collection of numerical, character, complex or logical objects. Vectors are collection of atomic (same data type) components or modes. For example > vec1 <- 1:10 > vec2 <- LETTERS[1:10] > vec3 <- vec2 == "D" > vec3 [1] FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE In each case above, these vectors have 10 elements, and are of length=10. 11
12 ˆ A matrix is a multidimensional collection of data entries of the same type. Matrices have two dimensions. It has rownames and colnames. > mat1 <- matrix(vec1, ncol = 2, nrow = 5) > print(mat1) [,1] [,2] [1,] 1 6 [2,] 2 7 [3,] 3 8 [4,] 4 9 [5,] 5 10 > dim(mat1) [1] 5 2 > colnames(mat1) = c("a", "B") > rownames(mat1) = paste("n", 1:5, sep = "") > print(mat1) A B N1 1 6 N2 2 7 N3 3 8 N4 4 9 N ˆ A list is an ordered collection of objects that can be of different modes (e.g. numeric vector, array, etc.). > a <- 20 > newlist1 <- list(a, vec1, mat1) > print(newlist1) [[1]] [1] 20 [[2]] [1] [[3]] A B N1 1 6 N2 2 7 N3 3 8 N4 4 9 N
13 > newlist1 <- list(a = a, vec = vec1, mat = mat1) > print(newlist1) $a [1] 20 $vec [1] $mat A B N1 1 6 N2 2 7 N3 3 8 N4 4 9 N ˆ Whilst a data.frame is a restricted list with class data.frame, it maybe regarding as a matrix with columns that can be of different modes. It is displayed in matrix form, rows by columns. (Its like an excel spreadsheet) > df1 <- as.data.frame(mat1) > df1 A B N1 1 6 N2 2 7 N3 3 8 N4 4 9 N ˆ A factor is a vector of categorical variables, it can be ordered or unordered. > charvec <- rep(letters[1:3], 10) > print(charvec) [1] "A" "B" "C" "A" "B" "C" "A" "B" "C" "A" "B" "C" "A" "B" "C" "A" "B" "C" "A" [20] "B" "C" "A" "B" "C" "A" "B" "C" "A" "B" "C" > table(charvec) charvec A B C > fac1 <- factor(charvec) > print(fac1) [1] A B C A B C A B C A B C A B C A B C A B C A B C A B C A B C Levels: A B C 13
14 > attributes(fac1) $levels [1] "A" "B" "C" $class [1] "factor" > levels(fac1) [1] "A" "B" "C" X.3 Attributes of R Objects 1. Basic attributes The most basic and fundamental properties of every objects is its mode and length. These are intrinsic attributes of every object. Examples of mode are logical, numeric, character, list, expression, name/symbol and function. Of which the most basic of these are: ˆ 'character': a character string ˆ 'numeric': a real number, which can be an integer or a double ˆ 'integer': an integer ˆ 'logical': a logical (true/false) value > x <- 3 > mode(x) [1] "numeric" > x <- "apple" > mode(x) [1] "character" > x < > x + 2 [1] > x == 2 [1] FALSE > x <- x == 2 > x [1] FALSE 14
15 > mode(x) [1] "logical" > x <- 1:10 > mode(x) [1] "numeric" > x <- LETTERS[1:5] > mode(x) [1] "character" > x <- matrix(rnorm(50), nrow = 5, ncol = 10) > mode(x) [1] "numeric" Repeat above, and find the length and class of x in each case. 2. Other attributes, dimension > x <- matrix(5:14, nrow = 2, ncol = 5) > x [,1] [,2] [,3] [,4] [,5] [1,] [2,] > attributes(x) $dim [1] 2 5 X.4 Creating and accessing objects We have already created a few objects: x, y, junk. Will create a few more and will select, access and modify subsets of them. ˆ Create vectors, matrices and data frames > x.vec <- seq(1, 7, by = 2) > names(x.vec) <- letters[1:4] > xmat <- cbind(x.vec, rnorm(4), rep(5, 4)) > ymat <- rbind(1:3, rep(1, 3)) > z.mat <- rbind(xmat, ymat) > x.df <- as.data.frame(xmat) > names(x.df) <- c("ind", "random", "score") 15
16 ˆ Accessing elements > x.vec[1] a 1 > x.vec["a"] a 1 > xmat[2, 3] [1] 5 > xmat[, c(2:3)] a b c d > xmat[, -c(1)] a b c d > xmat[xmat[, 1] > 3, ] x.vec c d > x.df$ind [1] > x.df[, 1] [1] ˆ Modifying elements > xmat[3, 1] <- 6 > z.mat[, 2] <- 0 ˆ Sorting, might want to re-order the rows of a matrix or see the sorted elements of a vector 16
17 > z.vec <- c(5, 3, 8, 2, 3.2) > sort(z.vec) [1] > order(z.vec) [1] > ChickWeight[1:2, ] weight Time Chick Diet > chick.short <- ChickWeight[1:36, ] > chick.srt <- chick.short[order(chick.short$time, chick.short$weight), + ] > chick.srt[1:2, ] weight Time Chick Diet > chickord <- chick.short[order(chick.short$weight), ] X.5 Exercise 1. Create a matrix mymat = Add a column containing the numbers: 11, 15, 19, 10, 15, Get help on the command colnames 4. Give the columns in your matrix, mymat, the following names: index, weeks, id, height 5. How can we get the even rows of mymat? 6. Change the element in the 5 th row, 4 th column to Sort the matrix mymat by weeks and height and store the result in mymat.srt 17
18 X.6 A few special topics 1. Logical vectors (true/false) are very useful for subsetting matrices/data frames, e.g. look at the ChickWeight data set and display baseline weight (weight) measurements (Time==0) in the (Diet==1) group attach(chickweight) weight[(time==0 & Diet==1)] detach(2) 2. Missing values are assigned special value of NA z <- c(1:3,na) z ind <- is.na(z) ind 3. Other useful types of objects, we ll talk about: factors (provide compact ways to handle categorical data), lists (general forms of a vector where the elements are not of the same type), and functions (will talk about build in functions and write our own) 4. Short note on lists > course.info <- list(title = "Bio503:Intro to R", first = c("culhane", + "Aedin"), lectures = c(7, 9, 14, 16, 24), time = rep("1:30-4:30", + 5), days = c(rep(c("mon", "Wed"), 2), "Thurs"), assnt = c(9, + 16, 24)) > course.info $title [1] "Bio503:Intro to R" $first [1] "Culhane" "Aedin" $lectures [1] $time [1] "1:30-4:30" "1:30-4:30" "1:30-4:30" "1:30-4:30" "1:30-4:30" $days [1] "Mon" "Wed" "Mon" "Wed" "Thurs" $assnt [1] > course.info[[2]] [1] "Culhane" "Aedin" 18
19 > course.info[[4]][1] [1] "1:30-4:30" > course.info[["lectures"]][3] [1] 14 > course.info[["days"]][3] [1] "Mon" 19
20 XI Quick recap ˆ Command driven object-oriented programming language ˆ All operations are done on objects which have classes ˆ Learned how to access help ˆ Went through creation, display, sorting and subsetting of vectors, matrices, data frames and lists XII More on matrices and subsetting 1. Creating empty vectors and matrices > x1 <- numeric() > x2 <- numeric(5) > x1.mat <- matrix(0, nrow = 10, ncol = 3) 2. Subsetting vectors > x1 <- c(1.2, 3.4, 4.8, 6.7, 10, -2, -5) > x1[-2] [1] > -x1[2] [1] -3.4 > x1[c(2, 5)] [1] > x1[-c(2, 5)] [1] Subsetting matrices > xmat <- matrix(3:11, nrow = 3) > xmat[, 1] > 3 [1] FALSE TRUE TRUE > xmat[xmat[, 1] > 3, ] [,1] [,2] [,3] [1,] [2,]
21 > row(xmat) > col(xmat) [,1] [,2] [,3] [1,] FALSE FALSE FALSE [2,] TRUE FALSE FALSE [3,] TRUE TRUE FALSE > xmat[row(xmat) > col(xmat)] <- 0 > xmat [,1] [,2] [,3] [1,] [2,] [3,] XIII Arithmetic and matrix operations 1. Basic operations on numeric vectors > x.vec <- seq(5, 8, by = 0.5) > y.vec <- (1:length(x.vec))/10 > x.vec * y.vec [1] > x.vec^y.vec [1] Operations on matrices > xmat <- matrix(-10:10, nrow = 7) > ymat <- matrix(rep(1:7, rep(3, 7)), nrow = 3) To multiple a matrix DO NOT use xmat * ymat. Use xmat > xmat * ymat > xmat %*% ymat > t(xmat) * ymat XIV Introduction to functions We have used several functions so far: seq(), rnorm(), length(). Many things in R are done using f unction calls. The format of a function is the name of the function followed by parentheses () containing one or more arguments. For instance rnorm(50), in this case 50 is the argument. See the help on rnorm. In this usage section it states 21
22 rnorm(n, mean=0, sd=1) in this case, n is the number of observation. Note when we ran rnorm(50), we didn t state rnorm(n=50) This is because R uses positional matching. It assumes the first argument is n. > rnorm(50) > rnorm(n = 50) > args(rnorm) > rnorm(50, 10) In general most functions require argument(s) and return a list of values. Sometime we don t enter arguments, this is when the system has default or f ormal arguments which are defined in the function. See the args(ls)) or args(plot). Let s look closer at a built-in function median() > median function (x, na.rm = FALSE) UseMethod("median") <environment: namespace:stats> > args(median) function (x, na.rm = FALSE) NULL To see the code in any function in R, type the name of that code. Sometimes, functions don t appear to be visible, e.g. we cannot see the code for function. In this case, to see the code used methods to find the full name of the function and then you can see the code of mean. > mean > methods(mean) > mean.default (Note:This will work for S3 defined functions, but not for some S4). We will expand on objects, function and reading and writing date from R in the next lecture. XV Short Final Exercise Have a look at the heights and weight in the dataset women. 22
23 1. what is the class of this dataset, what is its mode, length, dim, attributes 2. Generate a summary report, with the mean, median, sd of height and weight 3. What is the average height of women who weigh between 124 and 150 pounds (hint: need to select the data, and find the mean). How many women have a weight under Make a scatter plot height v weight. and find the Pearson correlation between height and weight for these women. (hint: use the help search functions) 5. Do these women have a Body mass index within the recommend range for their height? Calculate the BMI for each women, and determine if it falls within the recommended range. XVI Recommended Reading between lectures Please read the section on R objects and subsetting. 23
R Language Fundamentals
R Language Fundamentals Data Types and Basic Maniuplation Steven Buechler Department of Mathematics 276B Hurley Hall; 1-6233 Fall, 2007 Outline Where did R come from? Overview Atomic Vectors Subsetting
Introduction to R June 2006
Introduction to R Introduction...3 What is R?...3 Availability & Installation...3 Documentation and Learning Resources...3 The R Environment...4 The R Console...4 Understanding R Basics...5 Managing your
Using R for Windows and Macintosh
2010 Using R for Windows and Macintosh R is the most commonly used statistical package among researchers in Statistics. It is freely distributed open source software. For detailed information about downloading
STATGRAPHICS Online. Statistical Analysis and Data Visualization System. Revised 6/21/2012. Copyright 2012 by StatPoint Technologies, Inc.
STATGRAPHICS Online Statistical Analysis and Data Visualization System Revised 6/21/2012 Copyright 2012 by StatPoint Technologies, Inc. All rights reserved. Table of Contents Introduction... 1 Chapter
AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables
AMATH 352 Lecture 3 MATLAB Tutorial MATLAB (short for MATrix LABoratory) is a very useful piece of software for numerical analysis. It provides an environment for computation and the visualization. Learning
This activity will guide you to create formulas and use some of the built-in math functions in EXCEL.
Purpose: This activity will guide you to create formulas and use some of the built-in math functions in EXCEL. The three goals of the spreadsheet are: Given a triangle with two out of three angles known,
Hypercosm. Studio. www.hypercosm.com
Hypercosm Studio www.hypercosm.com Hypercosm Studio Guide 3 Revision: November 2005 Copyright 2005 Hypercosm LLC All rights reserved. Hypercosm, OMAR, Hypercosm 3D Player, and Hypercosm Studio are trademarks
Exercise 1: Python Language Basics
Exercise 1: Python Language Basics In this exercise we will cover the basic principles of the Python language. All languages have a standard set of functionality including the ability to comment code,
3 IDE (Integrated Development Environment)
Visual C++ 6.0 Guide Part I 1 Introduction Microsoft Visual C++ is a software application used to write other applications in C++/C. It is a member of the Microsoft Visual Studio development tools suite,
Introduction to R and UNIX Working with microarray data in a multi-user environment
Microarray Data Analysis Workshop MedVetNet Workshop, DTU 2008 Introduction to R and UNIX Working with microarray data in a multi-user environment Carsten Friis Media glna tnra GlnA TnrA C2 glnr C3 C5
Microsoft Excel 2010 Part 3: Advanced Excel
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Excel 2010 Part 3: Advanced Excel Winter 2015, Version 1.0 Table of Contents Introduction...2 Sorting Data...2 Sorting
Introduction to the data.table package in R
Introduction to the data.table package in R Revised: September 18, 2015 (A later revision may be available on the homepage) Introduction This vignette is aimed at those who are already familiar with creating
rm(list=ls()) library(sqldf) system.time({large = read.csv.sql("large.csv")}) #172.97 seconds, 4.23GB of memory used by R
Big Data in R Importing data into R: 1.75GB file Table 1: Comparison of importing data into R Time Taken Packages Functions (second) Remark/Note base read.csv > 2,394 My machine (8GB of memory) ran out
Basics of using the R software
Basics of using the R software Experimental and Statistical Methods in Biological Sciences I Juulia Suvilehto NBE 10.9.2015 Demo sessions Demo sessions (Thu 14.15 17.00) x 5 Demos, example code, and exercises
Introduction to R Statistical Software
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR 97333 (541) 754-4790 [email protected] What is R? A language and environment for
Lecture 2 Mathcad Basics
Operators Lecture 2 Mathcad Basics + Addition, - Subtraction, * Multiplication, / Division, ^ Power ( ) Specify evaluation order Order of Operations ( ) ^ highest level, first priority * / next priority
Web Ambassador Training on the CMS
Web Ambassador Training on the CMS Learning Objectives Upon completion of this training, participants will be able to: Describe what is a CMS and how to login Upload files and images Organize content Create
Microsoft Access 2010 Part 1: Introduction to Access
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Access 2010 Part 1: Introduction to Access Fall 2014, Version 1.2 Table of Contents Introduction...3 Starting Access...3
Kentico CMS 5.5 User s Guide
Kentico CMS 5.5 User s Guide 2 Kentico CMS User s Guide 5.5 Table of Contents Part I Introduction 4 1 Kentico CMS overview... 4 2 Signing in... 5 3 User interface overview... 7 Part II Managing my profile
Kentico CMS User s Guide 5.0
Kentico CMS User s Guide 5.0 2 Kentico CMS User s Guide 5.0 Table of Contents Part I Introduction 4 1 Kentico CMS overview... 4 2 Signing in... 5 3 User interface overview... 7 Part II Managing my profile
Guidelines for Accessing and Using the VDOT Scheduling Application (Primavera P6)
Guidelines for Accessing and Using the VDOT Scheduling Application (Primavera P6) CONSTRUCTION DIVISION (SCHEDULING & CONTRACTS) 1. INTRODUCTION To establish standards and consistent scheduling practices
CentralMass DataCommon
CentralMass DataCommon User Training Guide Welcome to the DataCommon! Whether you are a data novice or an expert researcher, the CentralMass DataCommon can help you get the information you need to learn
Data Warehouse. Business Objects
Data Warehouse Business Objects Power User: Querying [DW POWER USER] The data warehouse, at Booth, is used to store, retrieve and create reports for data at Booth. The first release of the warehouse contains
How to test and debug an ASP.NET application
Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult
Step 2: Save the file as an Excel file for future editing, adding more data, changing data, to preserve any formulas you were using, etc.
R is a free statistical software environment that can run a wide variety of tests based on different downloadable packages and can produce a wide variety of simple to more complex graphs based on the data
Formulas & Functions in Microsoft Excel
Formulas & Functions in Microsoft Excel Theresa A Scott, MS Biostatistician II Department of Biostatistics Vanderbilt University [email protected] Table of Contents 1 Introduction 1 1.1 Using
Getting Started with R and RStudio 1
Getting Started with R and RStudio 1 1 What is R? R is a system for statistical computation and graphics. It is the statistical system that is used in Mathematics 241, Engineering Statistics, for the following
Evaluator s Guide. PC-Duo Enterprise HelpDesk v5.0. Copyright 2006 Vector Networks Ltd and MetaQuest Software Inc. All rights reserved.
Evaluator s Guide PC-Duo Enterprise HelpDesk v5.0 Copyright 2006 Vector Networks Ltd and MetaQuest Software Inc. All rights reserved. All third-party trademarks are the property of their respective owners.
After you complete the survey, compare what you saw on the survey to the actual questions listed below:
Creating a Basic Survey Using Qualtrics Clayton State University has purchased a campus license to Qualtrics. Both faculty and students can use Qualtrics to create surveys that contain many different types
Building a Personal Website (Adapted from the Building a Town Website Student Guide 2003 Macromedia, Inc.)
Building a Personal Website (Adapted from the Building a Town Website Student Guide 2003 Macromedia, Inc.) In this project, you will learn the web publishing skills you need to: Plan a website Define a
Business Portal for Microsoft Dynamics GP 2010. User s Guide Release 5.1
Business Portal for Microsoft Dynamics GP 2010 User s Guide Release 5.1 Copyright Copyright 2011 Microsoft. All rights reserved. Limitation of liability This document is provided as-is. Information and
Wellspring FAX Service 1 September 2015
Training Notes 1 September 2015 Wellspring Software, Inc., offers a Fax Service that can be used with PrintBoss from any computer that has internet access. Faxes are sent from PrintBoss through the internet
SourceForge Enterprise Edition 4.4 SP1 User Guide
SourceForge Enterprise Edition 4.4 SP1 User Guide SourceForge Enterprise Edition 4.4, Service Pack 1 Part Number: 98-0063 Last Revision: January 2008 Copyright 2008 CollabNet, Inc. All rights reserved.
Introduction To Microsoft Office PowerPoint 2007. Bob Booth July 2008 AP-PPT5
Introduction To Microsoft Office PowerPoint 2007. Bob Booth July 2008 AP-PPT5 University of Sheffield Contents 1. INTRODUCTION... 3 2. GETTING STARTED... 4 2.1 STARTING POWERPOINT... 4 3. THE USER INTERFACE...
Exercise 4 Learning Python language fundamentals
Exercise 4 Learning Python language fundamentals Work with numbers Python can be used as a powerful calculator. Practicing math calculations in Python will help you not only perform these tasks, but also
Introduction. Chapter 1
Chapter 1 Introduction MATLAB (Matrix laboratory) is an interactive software system for numerical computations and graphics. As the name suggests, MATLAB is especially designed for matrix computations:
Bitrix Site Manager 4.1. User Guide
Bitrix Site Manager 4.1 User Guide 2 Contents REGISTRATION AND AUTHORISATION...3 SITE SECTIONS...5 Creating a section...6 Changing the section properties...8 SITE PAGES...9 Creating a page...10 Editing
R FOR SAS AND SPSS USERS. Bob Muenchen
R FOR SAS AND SPSS USERS Bob Muenchen I thank the many R developers for providing such wonderful tools for free and all the r help participants who have kindly answered so many questions. I'm especially
Tutorial 2: Reading and Manipulating Files Jason Pienaar and Tom Miller
Tutorial 2: Reading and Manipulating Files Jason Pienaar and Tom Miller Most of you want to use R to analyze data. However, while R does have a data editor, other programs such as excel are often better
CLC Server Command Line Tools USER MANUAL
CLC Server Command Line Tools USER MANUAL Manual for CLC Server Command Line Tools 2.5 Windows, Mac OS X and Linux September 4, 2015 This software is for research purposes only. QIAGEN Aarhus A/S Silkeborgvej
Microsoft Access 2010 Overview of Basics
Opening Screen Access 2010 launches with a window allowing you to: create a new database from a template; create a new template from scratch; or open an existing database. Open existing Templates Create
Results CRM 2012 User Manual
Results CRM 2012 User Manual A Guide to Using Results CRM Standard, Results CRM Plus, & Results CRM Business Suite Table of Contents Installation Instructions... 1 Single User & Evaluation Installation
Metadata Import Plugin User manual
Metadata Import Plugin User manual User manual for Metadata Import Plugin 1.0 Windows, Mac OS X and Linux August 30, 2013 This software is for research purposes only. CLC bio Silkeborgvej 2 Prismet DK-8000
DiskPulse DISK CHANGE MONITOR
DiskPulse DISK CHANGE MONITOR User Manual Version 7.9 Oct 2015 www.diskpulse.com [email protected] 1 1 DiskPulse Overview...3 2 DiskPulse Product Versions...5 3 Using Desktop Product Version...6 3.1 Product
Exploratory Data Analysis and Plotting
Exploratory Data Analysis and Plotting The purpose of this handout is to introduce you to working with and manipulating data in R, as well as how you can begin to create figures from the ground up. 1 Importing
CSC 120: Computer Science for the Sciences (R section)
CSC 120: Computer Science for the Sciences (R section) Radford M. Neal, University of Toronto, 2015 http://www.cs.utoronto.ca/ radford/csc120/ Week 2 Typing Stuff into R Can be Good... You can learn a
ITP 101 Project 3 - Dreamweaver
ITP 101 Project 3 - Dreamweaver Project Objectives You will also learn how to make a website outlining your company s products, location, and contact info. Project Details USC provides its students with
Model 288B Charge Plate Graphing Software Operators Guide
Monroe Electronics, Inc. Model 288B Charge Plate Graphing Software Operators Guide P/N 0340175 288BGraph (80207) Software V2.01 100 Housel Ave PO Box 535 Lyndonville NY 14098 1-800-821-6001 585-765-2254
My EA Builder 1.1 User Guide
My EA Builder 1.1 User Guide COPYRIGHT 2014. MyEABuilder.com. MetaTrader is a trademark of MetaQuotes www.metaquotes.net. Table of Contents MAIN FEATURES... 3 PC REQUIREMENTS... 3 INSTALLATION... 4 METATRADER
Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)
Lesson 07: MS ACCESS - Handout Handout Introduction to database (30 mins) Microsoft Access is a database application. A database is a collection of related information put together in database objects.
Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement
SAS Analyst for Windows Tutorial
Updated: August 2012 Table of Contents Section 1: Introduction... 3 1.1 About this Document... 3 1.2 Introduction to Version 8 of SAS... 3 Section 2: An Overview of SAS V.8 for Windows... 3 2.1 Navigating
Web Intelligence User Guide
Web Intelligence User Guide Office of Financial Management - Enterprise Reporting Services 4/11/2011 Table of Contents Chapter 1 - Overview... 1 Purpose... 1 Chapter 2 Logon Procedure... 3 Web Intelligence
Introduction to Mac OS X
Introduction to Mac OS X The Mac OS X operating system both a graphical user interface and a command line interface. We will see how to use both to our advantage. Using DOCK The dock on Mac OS X is the
Excel 2007 Basic knowledge
Ribbon menu The Ribbon menu system with tabs for various Excel commands. This Ribbon system replaces the traditional menus used with Excel 2003. Above the Ribbon in the upper-left corner is the Microsoft
The Center for Teaching, Learning, & Technology
The Center for Teaching, Learning, & Technology Instructional Technology Workshops Microsoft Excel 2010 Formulas and Charts Albert Robinson / Delwar Sayeed Faculty and Staff Development Programs Colston
OVERVIEW OF R SOFTWARE AND PRACTICAL EXERCISE
OVERVIEW OF R SOFTWARE AND PRACTICAL EXERCISE Hukum Chandra Indian Agricultural Statistics Research Institute, New Delhi-110012 1. INTRODUCTION R is a free software environment for statistical computing
Business Insight Report Authoring Getting Started Guide
Business Insight Report Authoring Getting Started Guide Version: 6.6 Written by: Product Documentation, R&D Date: February 2011 ImageNow and CaptureNow are registered trademarks of Perceptive Software,
Using the SAS Enterprise Guide (Version 4.2)
2011-2012 Using the SAS Enterprise Guide (Version 4.2) Table of Contents Overview of the User Interface... 1 Navigating the Initial Contents of the Workspace... 3 Useful Pull-Down Menus... 3 Working with
Finance Reporting. Millennium FAST. User Guide Version 4.0. Memorial University of Newfoundland. September 2013
Millennium FAST Finance Reporting Memorial University of Newfoundland September 2013 User Guide Version 4.0 FAST Finance User Guide Page i Contents Introducing FAST Finance Reporting 4.0... 2 What is FAST
Using Casio Graphics Calculators
Using Casio Graphics Calculators (Some of this document is based on papers prepared by Donald Stover in January 2004.) This document summarizes calculation and programming operations with many contemporary
Vim, Emacs, and JUnit Testing. Audience: Students in CS 331 Written by: Kathleen Lockhart, CS Tutor
Vim, Emacs, and JUnit Testing Audience: Students in CS 331 Written by: Kathleen Lockhart, CS Tutor Overview Vim and Emacs are the two code editors available within the Dijkstra environment. While both
CMS Training Manual. A brief overview of your website s content management system (CMS) with screenshots. CMS Manual
Training A brief overview of your website s content management system () with screenshots. 1 Contents Logging In:...3 Dashboard:...4 Page List / Search Filter:...5 Common Icons:...6 Adding a New Page:...7
Microsoft Word 2010 Tutorial
Microsoft Word 2010 Tutorial GETTING STARTED Microsoft Word is one of the most popular word processing programs supported by both Mac and PC platforms. Microsoft Word can be used to create documents, brochures,
R: A self-learn tutorial
R: A self-learn tutorial 1 Introduction R is a software language for carrying out complicated (and simple) statistical analyses. It includes routines for data summary and exploration, graphical presentation
Appendix: Tutorial Introduction to MATLAB
Resampling Stats in MATLAB 1 This document is an excerpt from Resampling Stats in MATLAB Daniel T. Kaplan Copyright (c) 1999 by Daniel T. Kaplan, All Rights Reserved This document differs from the published
No restrictions are placed upon the use of this list. Please notify us of any errors or omissions, thank you, support@elmcomputers.
This list of shortcut key combinations for Microsoft Windows is provided by ELM Computer Systems Inc. and is compiled from information found in various trade journals and internet sites. We cannot guarantee
MS Access: Advanced Tables and Queries. Lesson Notes Author: Pamela Schmidt
Lesson Notes Author: Pamela Schmidt Tables Text Fields (Default) Text or combinations of text and numbers, as well as numbers that don't require calculations, such as phone numbers. or the length set by
Umbraco v4 Editors Manual
Umbraco v4 Editors Manual Produced by the Umbraco Community Umbraco // The Friendly CMS Contents 1 Introduction... 3 2 Getting Started with Umbraco... 4 2.1 Logging On... 4 2.2 The Edit Mode Interface...
Visual Basic Programming. An Introduction
Visual Basic Programming An Introduction Why Visual Basic? Programming for the Windows User Interface is extremely complicated. Other Graphical User Interfaces (GUI) are no better. Visual Basic provides
Introduction to the TI Connect 4.0 software...1. Using TI DeviceExplorer...7. Compatibility with graphing calculators...9
Contents Introduction to the TI Connect 4.0 software...1 The TI Connect window... 1 Software tools on the Home screen... 2 Opening and closing the TI Connect software... 4 Using Send To TI Device... 4
Tips and Tricks SAGE ACCPAC INTELLIGENCE
Tips and Tricks SAGE ACCPAC INTELLIGENCE 1 Table of Contents Auto e-mailing reports... 4 Automatically Running Macros... 7 Creating new Macros from Excel... 8 Compact Metadata Functionality... 9 Copying,
Using Microsoft Access Databases
Using Microsoft Access Databases Print this document to use as a reference while you work through this course. Open Access, and follow all directions to familiarize yourself with the program. Database
Object systems available in R. Why use classes? Information hiding. Statistics 771. R Object Systems Managing R Projects Creating R Packages
Object systems available in R Statistics 771 R Object Systems Managing R Projects Creating R Packages Douglas Bates R has two object systems available, known informally as the S3 and the S4 systems. S3
TIBCO MDM Studio Repository Designer User s Guide
TIBCO MDM Studio Repository Designer User s Guide Software Release 4.0 July 2014 Two-Second Advantage Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED
BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005
BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005 PLEASE NOTE: The contents of this publication, and any associated documentation provided to you, must not be disclosed to any third party without
UOFL SHAREPOINT ADMINISTRATORS GUIDE
UOFL SHAREPOINT ADMINISTRATORS GUIDE WOW What Power! Learn how to administer a SharePoint site. [Type text] SharePoint Administrator Training Table of Contents Basics... 3 Definitions... 3 The Ribbon...
Basic Introduction. GMFX MetaTrader 4.0. Basic Introduction
GMFX GMFX About Got Money FX Got Money FX is an Australian owned and operated foreign exchange brokerage firm. We pride ourselves in offering our clients an honest and ethical trading environment. Clients
Module One: Getting Started... 6. Opening Outlook... 6. Setting Up Outlook for the First Time... 7. Understanding the Interface...
2 CONTENTS Module One: Getting Started... 6 Opening Outlook... 6 Setting Up Outlook for the First Time... 7 Understanding the Interface...12 Using Backstage View...14 Viewing Your Inbox...15 Closing Outlook...17
The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.
Content Introduction... 2 Data Access Server Control Panel... 2 Running the Sample Client Applications... 4 Sample Applications Code... 7 Server Side Objects... 8 Sample Usage of Server Side Objects...
Content Author's Reference and Cookbook
Sitecore CMS 6.5 Content Author's Reference and Cookbook Rev. 110621 Sitecore CMS 6.5 Content Author's Reference and Cookbook A Conceptual Overview and Practical Guide to Using Sitecore Table of Contents
BreezingForms Guide. 18 Forms: BreezingForms
BreezingForms 8/3/2009 1 BreezingForms Guide GOOGLE TRANSLATE FROM: http://openbook.galileocomputing.de/joomla15/jooml a_18_formulare_neu_001.htm#t2t32 18.1 BreezingForms 18.1.1 Installation and configuration
Computational Mathematics with Python
Boolean Arrays Classes Computational Mathematics with Python Basics Olivier Verdier and Claus Führer 2009-03-24 Olivier Verdier and Claus Führer Computational Mathematics with Python 2009-03-24 1 / 40
AutoDWG DWGSee DWG Viewer. DWGSee User Guide
DWGSee User Guide DWGSee is comprehensive software for viewing, printing, marking and sharing DWG files. It is fast, powerful and easy-to-use for every expert and beginners. Starting DWGSee After you install
Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro
Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro, to your M: drive. To do the second part of the prelab, you will need to have available a database from that folder. Creating a new
Package retrosheet. April 13, 2015
Type Package Package retrosheet April 13, 2015 Title Import Professional Baseball Data from 'Retrosheet' Version 1.0.2 Date 2015-03-17 Maintainer Richard Scriven A collection of tools
A Beginner s Guide to PowerPoint 2010
A Beginner s Guide to PowerPoint 2010 I. The Opening Screen You will see the default opening screen is actually composed of three parts: 1. The Slides/Outline tabs on the left which displays thumbnails
How to Edit Your Website
How to Edit Your Website A guide to using your Content Management System Overview 2 Accessing the CMS 2 Choosing Your Language 2 Resetting Your Password 3 Sites 4 Favorites 4 Pages 5 Creating Pages 5 Managing
edgebooks Quick Start Guide 4
edgebooks Quick Start Guide 4 memories made easy SECTION 1: Installing FotoFusion Please follow the steps in this section to install FotoFusion to your computer. 1. Please close all open applications prior
Intellect Platform - The Workflow Engine Basic HelpDesk Troubleticket System - A102
Intellect Platform - The Workflow Engine Basic HelpDesk Troubleticket System - A102 Interneer, Inc. Updated on 2/22/2012 Created by Erika Keresztyen Fahey 2 Workflow - A102 - Basic HelpDesk Ticketing System
Computational Mathematics with Python
Computational Mathematics with Python Basics Claus Führer, Jan Erik Solem, Olivier Verdier Spring 2010 Claus Führer, Jan Erik Solem, Olivier Verdier Computational Mathematics with Python Spring 2010 1
To launch the Microsoft Excel program, locate the Microsoft Excel icon, and double click.
EDIT202 Spreadsheet Lab Assignment Guidelines Getting Started 1. For this lab you will modify a sample spreadsheet file named Starter- Spreadsheet.xls which is available for download from the Spreadsheet
SharePoint 2007 Get started User Guide. Team Sites
SharePoint 2007 Get started User Guide Team Sites Contents 1. Overview... 2 1.1 What is SharePoint?... 2 1.2 What is a SharePoint Team Site?... 2 1.3 SharePoint user permissions... 2 2. Team Site features...
NETSCAPE COMPOSER WEB PAGE DESIGN
NETSCAPE COMPOSER WEB PAGE DESIGN Many thanks to Patsy Lanclos for this valuable contribution. With the newer versions of Netscape, you can build web pages for free using the built in web page program
Creating Database Tables in Microsoft SQL Server
Creating Database Tables in Microsoft SQL Server Microsoft SQL Server is a relational database server that stores and retrieves data for multi-user network-based applications. SQL Server databases are
There are six different windows that can be opened when using SPSS. The following will give a description of each of them.
SPSS Basics Tutorial 1: SPSS Windows There are six different windows that can be opened when using SPSS. The following will give a description of each of them. The Data Editor The Data Editor is a spreadsheet
A Short Guide to R with RStudio
Short Guides to Microeconometrics Fall 2013 Prof. Dr. Kurt Schmidheiny Universität Basel A Short Guide to R with RStudio 1 Introduction 2 2 Installing R and RStudio 2 3 The RStudio Environment 2 4 Additions
Code::Blocks Student Manual
Code::Blocks Student Manual Lawrence Goetz, Network Administrator Yedidyah Langsam, Professor and Theodore Raphan, Distinguished Professor Dept. of Computer and Information Science Brooklyn College of
