data2norm {SPPr} | R Documentation |
Takes a 3 column data frame input, plus experiments parameters, and creates a self consistent data frame for plotting and fitting.
data2norm(data, parameters)
data |
data is a 3 column data frame: ext angle (degrees), signal, reference. |
parameters |
parameters is a list of constants. |
Data frame containing "intAngle" , "extAngle" , "intAngle_r" , "extAngle_r" , "S" , "R" , "N"
See data(scanSPP) for example.
baptiste
## Not run: library(SPPr) # compare with example: data(scanSPP) head(scanSPP) parameters <- list(epsilon = c(1.46^2, -12+1.2i, 1+0i), thickness = c(NA, 50, NA), lambda = 632.8, k0 = 2*pi/632.8, anglePrism = pi/3, zeroShift = -0.4, normalisation = 23) dataNorm<-data2norm(scanSPP,parameters) head(dataNorm) save(file="dataNorm.rda", dataNorm) ## End(Not run)