tweak.std: Modify std object

Description Usage Arguments Details Value See Also Examples

Description

The function is used for modifying of existing std object.

Usage

1
2
3
4
tweak.std(
  x,
  desc = desc.std(x = x),
  lmargs = as.list(x[[1]]$lmfit$call[-c(1:3)]))

Arguments

x

std object to be modified

desc

list of description meta data, default is original meta data of object x

lmargs

list of lm additional arguments, default is original lmargs taken from lm call (all lm arguments except formula and data)

Details

The function modifies the std object or just refresh the x object while recalculating the lm fit, Rosin - Rammler coefficients and characteristic sizes. The refreshing of an old saved object can be useful in case that lm fit structure changes across R versions as the std object encapsulates lm fit result.

Value

Returns std object with length = 1.

See Also

desc.std, std

Examples

1
2
3
4
5
6
# Load the data, modify linear model and plot.
data(lignite)
std1 <- lignite[2]
std2 <- tweak.std(lignite[2],lmargs = list(weights=c(1,1,0,1)),
        desc = desc.std(x=std1,Title="Lignite w 1 1 0 1"))
plot(c(std1,std2))

sievetest documentation built on May 2, 2019, 8:13 a.m.