Learn R Programming

sievetest (version 1.2.3)

tweak.std: Modify std object

Description

The function is used for modifying of existing std object.

Usage

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)

Value

Returns std object with length = 1.

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.

See Also

desc.std, std

Examples

Run this code
# NOT RUN {
# 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))
# }

Run the code above in your browser using DataLab