View source: R/analysis_list_to_dataframe.R
analysis_list_to_dataframe | R Documentation |
Converts the output of foam_mechanical_analysis_list
, which is a nested list (list of list), into a flat dataframe for use in plotting and statistical analysis.
analysis_list_to_dataframe(file_info,output_foam_mechanical_analysis_list)
file_info |
Description of the compression curves. This is a dataframe, which needs to contain as many lines as there are elements in |
output_foam_mechanical_analysis_list |
Output by foam_mechanical_analysis_list. This is a list of lists |
A dataframe containing one line per estimated value. The values are described by the columns measurement
, direction
and point
. The measurement
indicates what is measured (stress, strain, distance, and so forth), the direction
indicates whether this was obtained in the "down" or "up" cycle (compression or release), while the point
column indicates the relevant segment on the foam compression curve (touchpoint, linear elastic segment, transition to plateau, plateau, transition to densification). As there are many measurements and points, as well as the "down" and "up" cycle, there are many lines in the return value for each line in file_info
. The
Thomas Braschler
read_texture_analyzer_tab, used internally
data(CMC_concentration_data) foam_mechanical_analysis_list_result=foam_mechanical_analysis_list(file_info=CMC_concentration_file_info, data_list=CMC_concentration_data,stress_column="pressure_reduced",stress_slope_column="pressureSlope_reduced") analyzed_data = analysis_list_to_dataframe(file_info=CMC_concentration_file_info,output_foam_mechanical_analysis_list=foam_mechanical_analysis_list_result) # Usage of the dataframe: one has to select specific measurements at specific points and a specific direction E_elastic_down = analyzed_data[analyzed_data$measurement=="E" & analyzed_data$point=="elastic" & analyzed_data$direction=="down",] plot(value ~ CMC_conc, E_elastic_down[order(E_elastic_down$CMC_conc),],type="b",log="xy")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.