Learn R Programming

Dominance (version 1.1.0)

change.action.without.response: changes kind of actions for all action without response

Description

changes kind of actions for all action without response

Usage

change.action.without.response(data.set,action,response,newaction, ...)

Arguments

data.set

data.frame f.e imported from a data sheet containing "Name","item.number" "action.from.","action.to","kind.of.action" "name.of.action","action.number","classification","weighting"

action

action normally with response

response

the normal response to the action

newaction

data.frame("name.of.action"="test","action.number"=1,"classification"=2,"weighting"=3)')

...

workbook : the XlConnect Workbook for the Excel file to be changed note: The workbook must be opened before sheet: the sheet name (some random numbers will be added to be sure not to delete any data

Value

change.action.without.response returns the new data.set

Examples

Run this code
# NOT RUN {
data(data_ADI)
new_data=change.action.without.response(data_ADI,3,9,
          newaction=data.frame("name.of.action"="test",
          "action.number"=10,"classification"=2,"weighting"=3))
new_data
# }

Run the code above in your browser using DataLab