Create a Matrix of Duplicate Pairs from Sequential Data
Function to take data stored as stacked records or alternating rows of records for ndup
duplicate pairs and generate a matrix with ndup
rows and two columns for the duplicate data, for further details see x
in Arguments below. The function returns a matrix for processing.
alts2dups(x, ifalt = FALSE)
x |
a column vector from a matrix or data frame, |
ifalt |
set |
Function provides an easy procedure with function plot
to present duplicate data as an x-y plot. The matrix generated can be passed directly to plot
in its call and the matrix column headings synthesized from the input variable name are used as plot axis titles.
xx |
a |
Any less than detection limit values represented by negative values, or zeros or other numeric codes representing blanks in the data, must be removed prior to executing this function, see ltdl.fix.df
.
Robert G. Garrett
## Make test data available data(ad.test) attach(ad.test) ## Save matrix of duplicate pairs test.save <- alts2dups(Cu, ifalt = TRUE) ## Plot analytical duplicate analyses plot(alts2dups(Cu, ifalt = TRUE), log = "xy") ## Clean-up and detach test data rm(test.save) detach(ad.test)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.