background preloader

The R programming language for programmers coming from other programming languages

The R programming language for programmers coming from other programming languages
IntroductionAssignment and underscoreVariable name gotchasVectorsSequencesTypesBoolean operatorsListsMatricesMissing values and NaNsCommentsFunctionsScopeMisc.Other resources Ukrainian translation Other languages: Powered by Translate Introduction I have written software professionally in perhaps a dozen programming languages, and the hardest language for me to learn has been R. R is more than a programming language. This document is a work in progress. Assignment and underscore The assignment operator in R is <- as in e <- m*c^2. It is also possible, though uncommon, to reverse the arrow and put the receiving variable on the right, as in m*c^2 -> e. It is sometimes possible to use = for assignment, though I don't understand when this is and is not allowed. However, when supplying default function arguments or calling functions with named arguments, you must use the = operator and cannot use the arrow. At some time in the past R, or its ancestor S, used underscore as assignment. Vectors Sequences

Information flow part 2: Information and metadata | sys 64738 Honestly, metadata is really, really boring. But hey, metadata is extremely useful. Without good metadata, we can’t really solve the findability problems we have on our intranet. In order to give the right person, the right information, at the right time, at the right place and in the right way, we must use metadata extensively. Or to be more precise, we must use master metadata. Important note: I’m foremost a practitioner and I prefer systems that solve problems in a pragmatic way. There are some problems… If it’s hard to add metadata to the information and it is mandatory to add it, then all publishers will simply use the first available metadata at hand in order to get past the mandatory metadata. But to any problem there is a solution… The most important thing is that it should be very easy to add metadata to any information. We have decided to have three separate types of keyword metadata: Content analysisKeyword serviceControlled listsTagging service Tagging

Using R for Introductory Statistics The following was posted to the R-mailing list 11/02/2006 <PRE> Using R for Introductory Statistics John Verzani, CUNY, College of Staten Island, New York This reference presents a self-contained treatment of statistical topics and the intricacies of the R software. The pacing is such that students are able to master data manipulation and exploration before diving into more advanced statistical concepts. The book treats exploratory data analysis with more attention than is typical, includes a chapter on simulation, and provides a unified approach to linear models. It lays the foundation for further study and development in statistics using R. Discounted Price: $35.96/£19.99 For more details and to order: All other R titles from CRC (some really excellent ones) received the discount too.

The Endeavour | John D. Cook I help people make decisions in the face of uncertainty. Sounds interesting. I’m a data scientist. Not sure what that means, but it sounds cool. I study machine learning. Hmm. I’m into big data. Even though each of these descriptions makes a different impression, they’re all essentially the same thing. There are distinctions. “Decision-making under uncertainty” emphasizes that you never have complete data, and yet you need to make decisions anyway. “Data science” stresses that there is more to the process of making inferences than what falls under the traditional heading of “statistics.” Despite the hype around the term data science, it’s growing on me. Machine learning, like decision theory, emphasizes the ultimate goal of doing something with data rather than creating an accurate model of the process that generates the data. “Big data” is a big can of worms. Bayesian statistics is much older than what is now sometimes called “classical” statistics.

IE5/6 Doubled Float-Margin Bug - CSS fixes and workarounds What Goes Wrong With Float Margins in IE6 A coder innocently places a left float into a container box, and uses a left margin on the float to push it away from the left side of the container. Seems pretty simple, right? Well it is until it's viewed in IE6. In that browser the left float margin has mysteriously been doubled in length! Thankfully, IE7 does not show this bug. The Way It Oughta Be The graphic below shows a simple div (tan box) containing a left-floated div (green box) . The Old IE "Doubletake" That exact same code when viewed in IE/Win is displayed in a slightly different way. Why is this happening? Important Points This bug only occurs when the float margin goes in the same direction as the float and is trapped directly between the float and the inside edge of the container box. At Last, A Fix! Steve Clason has discovered a fix, outlined in his Guest Demo, that fixes both this doubled margin bug and a weird text indent bug as well. So What Is It Already? Serendipity Well!

Quick-R: Home Page Impatient R Translations français: Translated by Kate Bondareva. Serbo-Croatian: Translated by Jovana Milutinovich from Geeks Education. Preface This is a tutorial (previously known as “Some hints for the R beginner”) for beginning to learn the R programming language. It is a tree of pages — move through the pages in whatever way best suits your style of learning. You are probably impatient to learn R — most people are. This page has several sections, they can be put into the four categories: General, Objects, Actions, Help. General Introduction Blank screen syndrome Misconceptions because of a previous language Helpful computer environments R vocabulary Epilogue Objects Key objects Reading data into R Seeing objects Saving objects Magic functions, magic objects Some file types Packages Actions What happens at R startup Key actions Errors and such Graphics Vectorization Make mistakes on purpose

Using Dean Edwards IE7 Script The issue When Internet Explorer version 6 (IE6) was introduced in 2001 it was a groundbreaking product but browsers were then being developed so fast that it was soon overtaken by others which conformed better with web standards. IE6 quickly became the butt of authors' humour but, in spite of this, ten years later it is still widel y deployed and, although numbers are reducing, its final demise may well be some way off. Consequentially authors still need to design sites that will give visitors using IE6 an acceptable experience. IE7 script In the recent past authors have usually worked around the problem by writing a specific style sheet and targeting it at this browser [Ref 10] – a process that has often been very time-consuming. You seem to have scripts switched off. Dean Edwards' objective is to make IE6 behave like IE7. IE7 is a JavaScript library to make Microsoft Internet Explorer behave like a standards-compliant browser. The library has been made freely available for use. or

An Introduction to R Table of Contents This is an introduction to R (“GNU S”), a language and environment for statistical computing and graphics. R is similar to the award-winning1 S system, which was developed at Bell Laboratories by John Chambers et al. It provides a wide variety of statistical and graphical techniques (linear and nonlinear modelling, statistical tests, time series analysis, classification, clustering, ...). This manual provides information on data types, programming elements, statistical modelling and graphics. This manual is for R, version 3.1.0 (2014-04-10). Copyright © 1990 W. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Preface This introduction to R is derived from an original set of notes describing the S and S-PLUS environments written in 1990–2 by Bill Venables and David M. Comments and corrections are always welcome. Suggestions to the reader 1.1 The R environment Try ?

Data Sorcery with Clojure MyFav.es: Create Minimalist Start Page With Favorite Website Ico Bowser startpage users who like to keep it simple will instantly fall in love with MyFav.es. MyFav.es (derived from “my favorites”) is a minimalist start page website that delivers great functionality in its simple design. If you do not know what a startpage is, it is a collection of web shortcuts shown in a thumbnail view. When it comes to startpage websites, many of them give you unlimited shortcuts options; this causes a clutter which is counterproductive ““ it makes it harder to reach your desired web shortcut. With MyFav.es you get only 4 thumbnail shortcuts. Features: Check out MyFav.es @ www.myfav.es

Related: