Google's R Style Guide https://google-styleguide.googlecode.com/svn/trunk/Rguide.xml
# This is a comment
# Get current working directory
> getwd()
#! /bin/bash | |
# Wrapper for "stata -b" which issues an informative error msg and appropriate | |
# (i.e., non-zero) return code | |
# The basic idea for this script (including grepping the log file to determine | |
# whether there was an error) was taken from a similar script posted by Brendan | |
# Halpin on his blog at http://teaching.sociology.ul.ie/bhalpin/wordpress/?p=122 | |
args=$# # number of args |
/* Binary Tree Traversal - Preorder, Inorder, Postorder */ | |
#include<iostream> | |
using namespace std; | |
struct Node { | |
char data; | |
struct Node *left; | |
struct Node *right; | |
}; |
# Plotting networks in R | |
# An example how to use R and rgexf package to create a .gexf file for network visualization in Gephi | |
############################################################################################ | |
# Clear workspace | |
rm(list = ls()) | |
# Load libraries | |
library("igraph") | |
library("plyr") |