## Vector Addition in R

> # Let’s check how R treats addition of vectors > a=c(1,2,3,4) > a [1] 1 2 3 4 > b=c(5,6,7,8) > b [1] 5 6 7 8 > #notice a and b both has same length > length(a) [1]…

## na.rm=T in R

Follow the example to see the use of na.rm=T in R > x=c(0, 1, 1, 2, 3, 5, 8) #vector > x [1] 0 1 1 2 3 5 8 > mean(x) [1] 2.857143 Now, introduce a NA value in…

## Newborn Age vs Weight in R-statistical Program.

Follow My code > newbornAgeMonths=c(0,1,2,3,4,5,6,7,8,9,10,11) > newbornWeightMonths=c(7.16,9.15,10.91,12.56,14,15.43,16.53,17.64,18.74,19.62,20.28,21.05) > mean(newbornWeightMonths) [1] 15.25583 > cor(newbornAgeMonths,newbornWeightMonths) [1] 0.9883767 > plot(newbornAgeMonths,newbornWeightMonths) > table=rbind(newbornAgeMonths,newbornWeightMonths) > table [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] newbornAgeMonths 0.00 1.00 2.00 3.00 4 5.00 6.00 7.00…

## Top 20 commands for R-statistical software for new users

Top 20 commands for R-statistical software. What is R? ·        R is a programming language. ·        A program that can do cool statistics. ·        Modeled after S and S-Plus. ·        R project was started by Robert Gentleman and Ross Ihaka of the statistics Department of the University of Auckland · The R –…

## Packer Testing: Is the flow laminar in my test?

This article is about a small but critical check that we should do when conducting packer testing. That is, whether the flow is laminar during the test. The ground water manual talk about how to check for the laminar nature…

## Is the solubility of silver (Ag) controlled by pH?

I am going to use a tiny Ag in my system. Activity = 1E-10. Geochemistry Question: Is the solubility of Ag controlled by pH? To solve the problem, let’s build a activity diagram for Ag with Geochemist’s Workbench. Command to…

## List of minerals in the thermo.dat database : using Geochemist’s Workbench

I often use the “Explain” command to learn more about a mineral in the thermo.dat database.  But sometimes it would return an error message. Rxn> Explain Anorthite Anorthite: CaAl2Si2O8 feldspar mole weight = 278.209 g/mol molar volume = 100.790 cm3/mol,…

## Common RXN commands for the Geochemist’s Workbench software

Follow their official user manual. I think they need to provide some more detailed examples in their manual. I use this cheat sheet for my own use a lot. Review, update and share any comments.   Commands that works ACTIVITY…