Entering edit mode
maryke.wijma
•
0
@marykewijma-16526
Last seen 6.3 years ago
I am trying to use the PAPi package but I get the same error all the time:
'names' attribute [1] must be the same length as the vector [0] In addition: Warning messages: 1: In if (getpath != 0) { : the condition has length > 1 and only the first element will be used 2: In if (getpath != 0) { : the condition has length > 1 and only the first element will be used
I tried to import the data via .csv and .txt, and tried to input it manually as well and it gave the same error. I replaced zero values with NA and vice versa and it didn't work either. Below is the head() of the data and below that is the papi() function. PLEASE HELP!!!!!!!
Names Sample1 Sample2 Sample3 Sample4 Sample5 Sample6 Sample7 Sample8 1 Replicates cond1 cond1 cond1 cond1 cond2 cond2 cond2 cond2 2 C07649 151265.4253 148799.8976 154242.0619 119108.6 276657.9918 315467.2819 301866.8625 212639831 3 C00311 223852.0405 120578.5208 193624.1159 236441.7865 107104.3606 124378.8024 139278.0376 57656.24182 4 C05902 33963.68177 33285.47963 30451.55417 38154.0115 22422.33527 18670.80938 15712.85784 16105.05242 5 C05839 3501.830238 4349.809944 3538.196519 2762.949375 8581.826526 13673.38036 9464.599217 6138.590762 6 C02887 8359.5754 10401.98625 9725.499029 7318.092406 10593.34775 12063.62984 6714622 7757.618207
papiResults <- papi(papiData, save = FALSE, offline = F)