R: Reading Data

When importing data from a file into R, the common methods are: read.table() read.csv() read.csv2() read.table() is a common method, but requires more parameters to be passed like (file, header, the separator, row names, number of rows.) It also reads the data directly into your computers RAM, which for big Continue Reading

NASA’s OpenNEX Datasets

NASA has a really cool website: https://nex.nasa.gov/nex/static/htdocs/site/extra/opennex/ The website allows you to access large data sets and connect to virtual lab’s using Amazon AWS. Not only do you get the data sets, virtual lab’s, but you also have the ability to win prizes and listen to various lecturers on this subject Continue Reading

R Functions

Much like my other basic post on functions… R has it’s own use of functions. In R, you assign a function class to a object (remember in R class and object mean something different then in OO languages.)  A class is like a type (int, character, etc.)  and object is Continue Reading

R Control structures

Much like other languages, R has a set of control structures.  Namely: If / else (if a condition is met, do something) For (loop for x number of times) While (while something is true, loop) Repeat (infinite loop) Break (exit a loop) Next (skip an iteration of a loop) Return Continue Reading