| readV2A | R Documentation |
Each component is a sequential block opened by Corrected accelerogram
(case-insensitive). Within a block, header ends 10 lines after
Displacement:. Body has 10 values per row in fixed-width form;
"stuck" negatives are split before parsing. Each component vector is
truncated at its own Number of points value.
readV2A(file)
file |
Path to the .V2A file. |
OCIDs come from Component <X> lines in each block.
LONG data.table(t, OCID, s).
file <- tempfile(fileext = ".V2A")
writeLines(c(
"Corrected Accelerogram", "Component H1", "at 0.01 sec intervals",
"Number of points 4", "Displacement:", rep("header", 10), "1 2 3 4",
"Corrected Accelerogram", "Component H2",
"Number of points 4", "Displacement:", rep("header", 10), "2 3 4 5",
"Corrected Accelerogram", "Component UP",
"Number of points 4", "Displacement:", rep("header", 10), "3 4 5 6"
), file)
readV2A(file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.