Function to update the
created column of the data
COLSRC with current date and time.
A data frame. The
The COLSRC data frame of an MTZ header has a column called
created which displays the date and time at which the
MTZ file data columns were created. When writing out a
modified list obtained from reading an MTZ file, one might
want to change the
created column with the current
date and time. Other specific types of change can be operated
by handling the
COLSRC data frame in an *ad hoc* manner.
hdr input data frame with the
column of the
COLSRC data frame changed to
display the current date and time.
# Read a sample MTZ file datadir <- system.file("extdata",package="cry") filename <- file.path(datadir,"1dei_phases.mtz") lMTZ <- readMTZ(filename) # Original COLSRC print(lMTZ$header$COLSRC) # Update date and time stamp lMTZ$header <- change_COLSRC(lMTZ$header) # New COLSRC print(lMTZ$header$COLSRC)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.