## xpdb5 is an Xpose data object
## We expect to find the required NONMEM run and table files for run
## 5 in the current working directory
xpdb5 <- xpose.data(5)
## get the column name in the Data slot of object xpdb5
## corresponding to the label dv
xvardef("dv", xpdb5)
## reset the which column the label dv points to in the Data slot of
## object xpdb5
xvardef(xpdb5) <- c("dv", "DVA")
Run the code above in your browser using DataLab