我有一个R数据框。比方说,我的数据df_sample如下图
Creating summariser <summary>
Created the tree successfully using Demo17Run.jmx
Starting the test
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
summary = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
Tidying up ...
Error generating the report: org.apache.jmeter.report.core.SampleException: Could not read metadata !
... end of run
我想编写一个函数,该函数将使用数据框名称和变量名,而不是按要求的索引,作为输入并打印标题。
所以我尝试了这个
var1 var2 var3 var4
12 22 32 42
23 11 22 32
25 15 12 11
但是我收到错误消息
test <- function(data, var) {
Title=paste("Check for:",var)
message(Title)
}
test(df_sample,var1)
您能帮我解决这个问题吗?