data2norm {SPPr}R Documentation

Converts data to a standardized data frame

Description

Takes a 3 column data frame input, plus experiments parameters, and creates a self consistent data frame for plotting and fitting.

Usage

data2norm(data, parameters)

Arguments

data data is a 3 column data frame: ext angle (degrees), signal, reference.
parameters parameters is a list of constants.

Value

Data frame containing "intAngle" , "extAngle" , "intAngle_r" , "extAngle_r" , "S" , "R" , "N"

Note

See data(scanSPP) for example.

Author(s)

baptiste

See Also

scanSPP

Examples

## 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)


[Package SPPr version 1.0 Index]