[chronojump] ForceSensor export NAs from R are now ""



commit 72ab44c21be69ec23ca00317c8ba2c8553842dff
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Feb 18 18:54:11 2021 +0100

    ForceSensor export NAs from R are now ""

 r-scripts/maximumIsometricForce.R | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/r-scripts/maximumIsometricForce.R b/r-scripts/maximumIsometricForce.R
index 6eb06df2..89ba8af3 100644
--- a/r-scripts/maximumIsometricForce.R
+++ b/r-scripts/maximumIsometricForce.R
@@ -1198,9 +1198,9 @@ start <- function(op)
                } else {
                        #print csv
                        if(op$decimalCharAtExport == ".")
-                               write.csv(exportDF, file = paste(tempPath, "/cj_mif_export.csv", sep = ""), 
row.names = FALSE, col.names = TRUE, quote = FALSE)
+                               write.csv(exportDF, file = paste(tempPath, "/cj_mif_export.csv", sep = ""), 
row.names = FALSE, col.names = TRUE, quote = FALSE, na="")
                        else if(op$decimalCharAtExport == ",")
-                               write.csv2(exportDF, file = paste(tempPath, "/cj_mif_export.csv", sep = ""), 
row.names = FALSE, col.names = TRUE, quote = FALSE)
+                               write.csv2(exportDF, file = paste(tempPath, "/cj_mif_export.csv", sep = ""), 
row.names = FALSE, col.names = TRUE, quote = FALSE, na="")
                }
        }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]