Writing to Excel files comes up rather often, especially if you’re collaborating with non-OSS users. There are several options, but I like the xlsx package way of…
View More Write data (frame) to Excel file using R package xlsxCategory: R
Programming in R
Programming in R Author: Thomas Girke, UC Riverside Contents 1 Introduction 2 R Basics 3 Code Editors for R 4 Integrating R with Vim and Tmux 5 Finding Help 6 Control Structures 6.1 Conditional…
View More Programming in RHow to write your own functions and good R programing techniques
How to write your own functions and good R programing techniques Good R Programing Techniques Writing Functions The R function Statement Function Return Values Function…
View More How to write your own functions and good R programing techniquesWhat “Apply” does
Lapply and sapply: avoiding loops on lists and data frames Tapply: avoiding loops when applying a function to subsets “Apply” functions keep you from having…
View More What “Apply” doesRead multiple CSV files into separate data frames
##Read files named xyz1111.csv, xyz2222.csv, etc. filenames <- list.files(path=”../Data/original_data”, pattern=”xyz+.*csv”) ##Create list of data frame names without the “.csv” part names <-substr(filenames,1,7)) ###Load all files…
View More Read multiple CSV files into separate data framesHow to Make Bubble Charts
By NATHAN YAU Ever since Hans Rosling presented a motion chart to tell his story of the wealth and health of nations, there has been an…
View More How to Make Bubble Charts