http://en.wikibooks.org/wiki/R_Programming/Text_Processing This page includes all the material you need to deal with strings in R. The section on regular expressions may be useful to…
View More R Programming/Text ProcessingCategory: R
R-substr, substring
Retrieve or replace a substring of a character string via the substr and substringfunctions. Additionally, these functions can be used to overwrite a part of a character string.…
View More R-substr, substringWriting a for-loop in R
by Patrick on 23 March, 2013 in Patrick’s Ponderables There may be no R topic that is more controversial than the humble for-loop. And, to top it off, good help…
View More Writing a for-loop in RPlotting a 3D surface plot with contour map overlay, using R
I have a 3-tuple data set (X,Y,Z points) that I want to plot using R. I want to create a surface plot from the data,…
View More Plotting a 3D surface plot with contour map overlay, using RReading in data from an external file
Reading in data from an external file The data sets: test.txt, cars.txt, test_missing.txt, test_missing_comma.txt, test_fixed.txt, scan.txt, 1. Reading in data from the console using the scan function For very small data vectors it…
View More Reading in data from an external fileSummary statistics by two or more factor variables
How about this, still using tapply()? It’s more versatile than you knew! with(mtcars, tapply(mpg, list(cyl, gear), sum)) # three four five # four 21.5 215.4 56.4…
View More Summary statistics by two or more factor variablesFactors in R
Factors in R Conceptually, factors are variables in R which take on a limited number of different values; such variables are often refered to as…
View More Factors in RFrequencies and Crosstabs
This section describes the creation of frequency and contingency tables from categorical variables, along with tests of independence, measures of association, and methods for graphically…
View More Frequencies and CrosstabsR- Table Function
R Tutorial Cyclismo.org Two Way Tables Here we look at some examples of how to work with two way tables. We assume that you can enter…
View More R- Table FunctionOpen Access .mdb Files with RODBC
Getting data into R can be done by reading colon separated files (.csv) via the read.table() function. It is also possible to access databases directly…
View More Open Access .mdb Files with RODBC