search for: hco3

Displaying 10 results from an estimated 10 matches for "hco3".

2012 May 17
3
New Eyes Needed to See Syntax Error
...many scripts to produce 4 lattice plots on one page keeps throwing an error. I've tried manipulating the file to eliminate the error, but have not been able to do so. The error is: > source('bicarb.R') Error in source("bicarb.R") : bicarb.R:15:1: unexpected symbol 14: 15: hco33 ^ The 'h' is in column 0 so the caret would be column -1, but it's presented as column 1. The file, bicarb.R is: hco31 <- qqmath(~ HCO3 | factor(basin), data = surfchem.cast, main = 'Bicarbonate (Raw)', prepanel = prepanel.qqmathline, panel = function(x, ...)...
2008 Oct 03
1
3D scatter, groups, RdbiPgSQL...
...om a PostgreSQL database (using the Rdbi and RdbiPgSQL packages) it gives me this error message: ERROR: groups variable must be a factor. To be more clear here is a command I used with the scatter3d (exactly the same for the both datasets): scatter3d(br_scatter$cl, br_scatter$br, br_scatter$hco3, fit="linear", residuals=TRUE, bg="white", axis.scales=TRUE, grid=TRUE, ellipsoid=FALSE, xlab="cl", ylab="br", zlab="hco3", groups = br_scatter$stratigraphy) the dataset I used is here (the same is the data imported from the CSV file and from a...
2011 Nov 29
5
Why Numeric Values Become Factors in Data Frame
...s: str(waterchem) 'data.frame': 3525 obs. of 39 variables: site : Factor w/ 64 levels "D-1","D-2","D-3",..: 1 1 1 1 1 ... $ sampdate : Date, format: "2007-12-12" "2008-03-15" ... $ CO3 : num 1 1 6.7 1 1 1 1 1 1 1 ... $ HCO3 : num 231 228 118 246 157 208 338 285 260 240 ... $ Ca : num 100 88.4 63.4 123 78.2 103 265 213 178 166 ... $ DO : num 4.96 9.91 4.32 2.58 1.81 5.09 3.98 5.46 1.9 2.52 ... ... $ SC : Factor w/ 841 levels "1.090","10.000",..: 635 638 363 A...
2024 Feb 02
1
gathering denominator under frac
...(frac("additive BIC","true BIC")))) worked OK - but now I have been asked to put the chemistry instead - so I wrote ?ylab(expression(paste(frac("additive",HCO[3]^"-","true",HCO[3]^"-")))) - and frac saw that as additive = numerator and HCO3- = denominator and the rest was ignored- So how do I make frac ignore the first ","? and print the fraction as I want? All best wishes Troels
2024 Feb 02
1
gathering denominator under frac
...BIC","true BIC")))) worked OK - but > now I have been asked to put the chemistry instead - so I wrote > > ?ylab(expression(paste(frac("additive",HCO[3]^"-","true",HCO[3]^"-")))) > - and frac saw that as additive = numerator and HCO3- = denominator and > the rest was ignored- > > So how do I make frac ignore the first ","? and print the fraction as I > want? > > > All best wishes > Troels > > ______________________________________________ > R-help at r-project.org mailing list --...
2024 Feb 02
1
gathering denominator under frac
...true BIC")))) worked OK - but > > now I have been asked to put the chemistry instead - so I wrote > > > > ylab(expression(paste(frac("additive",HCO[3]^"-","true",HCO[3]^"-")))) > > - and frac saw that as additive = numerator and HCO3- = denominator and > > the rest was ignored- > > > > So how do I make frac ignore the first "," and print the fraction as I > > want? > > > > > > All best wishes > > Troels > > > > ______________________________________________...
2012 Jan 02
1
Creating ZOO Matrix from Data Frame
...obs. of 47 variables: $ site : Factor w/ 143 levels "BC-0.5","BC-1",..: 1 1 1 2 2 2 2 2 2 2 $ sampdate : Date, format: "1996-04-19" "1996-05-21" ... $ Ca : num 76.6 NA NA NA NA ... $ Cond : num 712 403 731 NA NA NA NA NA NA NA ... $ HCO3 : num 162 152 212 NA NA NA NA NA NA NA ... $ SO4 : num 175 57 194 NA NA NA NA NA NA NA ... $ TDS : num 460 212 530 NA NA NA NA NA NA NA ... ... What I think I need is a matrix that orders sampdate, has the numeric values for TDS, and retains the factor of site (so that I...
2001 Nov 05
1
Problem to transfer Splus functions
...<- wt/sum(wt) mx <- wt %*% x xx <- t(t(x) - as.vector(mx)) rwt <- sqrt(wt) y <- rwt * xx #.. integration des poids.. stdx <- sqrt(diag(t(y) %*% y)) if(ctr) x <- xx x <- t(t(x)/stdx) dimnames(x) <- nam attr(x, "std") <- stdx x } ca mg cl so4 hco3 co2 c te deb 62.8 3.5 1.75 27.5 173 2.93 300 10.40 0.092 62.8 4.0 1.65 27.0 177 2.92 300 10.40 0.490 64.5 3.6 1.65 28.5 179 3.10 303 10.40 0.560 64.0 5.0 1.70 26.0 184 3.33 308 10.40 0.605 61.6 5.0 1.90 28.0 178 3.08 303 10.40 0.690 63.5 4.4 1.75 27.5 179 2.76 302 10.50 0.740 6...
2015 Jun 19
2
Sobre data.table
Mª Luz, si el comando de Carlos te devuelve 0 es que no hay NA's. Da igual que tus columnas sean caracteres o número. Lo que intuyo es que tienes celdas con la frase "NA" que interpretas como NA. Mandanos el summary de tu data.table y lo vemos... ----- Mensaje original ----- De: "MªLuz Morales" <mlzmrls en gmail.com> Para: "Carlos J. Gil Bellosta"
2011 Nov 02
2
Proper Syntax for Logical Subset in Subset()
...A NA NA NA NA NA NA ... $ Cr : num NA NA NA NA NA NA NA NA NA NA ... $ DO : num NA NA NA NA NA NA NA NA NA NA ... $ F : num NA NA NA NA NA NA NA NA NA NA ... $ Fe : num 0.06 NA NA NA NA NA NA NA NA NA ... $ Flow : num NA NA NA NA NA NA NA NA NA NA ... $ HCO3 : num 162 152 212 NA NA NA NA NA NA NA ... $ Hg : num 0 NA NA NA NA NA NA NA NA NA ... $ K : num 1.7 NA NA NA NA NA NA NA NA NA ... $ Mg : num 43.2 NA NA NA NA ... $ Mn : num NA NA NA NA NA NA NA NA NA NA ... $ NO2-N : num NA NA NA NA NA NA NA NA NA N...