change_block: Editing or showing specific blocks (ens.i01)

Description Usage Arguments Value See Also

View source: R/change.R

Description

The function will edit or show the value of specific blocks

Usage

1
2
change_block(paternlist = NULL, contentlist = NULL, infile = NULL,
  outfile = NULL, type = "show")

Arguments

paternlist

list. indicates the location for block changing ->pattern0: the start of the block to be matched ->pattern1: the end of the block to be matched. ->shift: a vector. if length(shift)==2. Index shift will be added on pattern0 and pattern1 if length(shift)==1. The shift is the same for both pattern0 and pattern1 must be provided.

contentlist

list. the value to be changed ->file: the file to read from ->ilinerag: the index range of lines as input Default NULL

infile

string. input file path. must be provided

outfile

string. output file path. default NULL

type

string. "show"(show the parameter, default), "edit"(edit the value) if there is mulitple value for the corresponding term, only show value is possible

Value

If type="edit", no value is returned and just change the file correspondingly If type="show", return the show part

See Also

[change_para()] for modifying one parameter


artedison/ensRadaptor documentation built on Dec. 8, 2020, 5:31 p.m.