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…
Read more
Coal Geology and Mining: Consulting Services
Geological Consulting, Data Analysis: hydrogeology, geochemistry and mineral resources, contact:Ankan Basu, PG/CPG, Hyrogeologist/Geochemist
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…
Read more
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…
Read more
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 –…
Read more