checkmat {takos}R Documentation

Title checkmat

Description

Title checkmat

Usage

checkmat(dat, header = TRUE, selected = c(0, 1, 2, 0, 0, 0, 4, 0))

Arguments

dat

MUST be a data.frame where each column represent a parameter of the thermogram you need to check

header

present or not in your data.frame

selected

a vector that include the coded position of the parameters present in the dataset. 0 equal not present, while if you insert a number its value will refer to the index of the column of the input matrix where the parameter is stored. the coding of the vector selected is the following 1. "time.minutes" 2. "time.seconds" 3."temperature.s" 4."temperature.r" 5."temperature.s.K" 6."temperature.r.K"7."heat.flow"8. "id"

Details

i.e. selected=c(1,0,2,0,0,0,3) means that your first column is time.seconds, the second column is the temperature of the sample and the this column is the heat flow. 0 represents the other column of your files that are not present in your dataset

Value

Checked data frame

Examples

npoints=1000
x=seq(1,npoints)
y=(dnorm(x, mean=npoints/2, sd=npoints/10))
x=seq(1,1000)
x2=seq(200,500,length.out=1000)
dat=data.frame(x,x2,y)
colnames(dat) <- c("time.seconds", "temperature.s","heat.flow")
cmat<- checkmat(dat,selected=c(1,0,2,0,0,0,3,0))


[Package takos version 0.2.0 Index]