sfclassic2df: Split stanford classic text string to dataframe

View source: R/sfclassic_general.R

sfclassic2dfR Documentation

Split stanford classic text string to dataframe

Description

Split stanford classic text string to dataframe

Usage

sfclassic2df(strng)

Arguments

strng

is a "stanfor classic file text string", i.e. the content of any StanForD classic machine report. The content is a long string which carries all the data. Stanford classic variables are separated by a "~", followed by two numbers defining the variable code and type, then followed by the variable values.

Value

a data.frame, where each pair of StanForD code and corresponding variable values will form one column. I.e have one row

Examples

stanford_classic_string <-
"1 2 \nSTM~120 1 \nFURU \nGRAN~16 4 \n20160208064316~116 1 7 7 2 2"
sfclassic2df(stanford_classic_string)

hbelbo/stanfordclassicr documentation built on Dec. 23, 2024, 2:45 p.m.