more error handling but it seems to run
This commit is contained in:
+11
-1
@@ -16,4 +16,14 @@ insertRow <- function(existingDF, newrow, r) {
|
||||
existingDF <- existingDF[order(c(1:(nrow(existingDF)-1),r-0.5)),]
|
||||
row.names(existingDF) <- 1:nrow(existingDF)
|
||||
return(existingDF)
|
||||
}
|
||||
}
|
||||
|
||||
# mergeIfExists <- function(fulldf, tempdf) {
|
||||
# if(exists(fulldf)) {
|
||||
# fulldf <- insertRow(fulldf, tempdf)
|
||||
# }
|
||||
# else {
|
||||
# fulldf <- tempdf
|
||||
# }
|
||||
# return(fulldf)
|
||||
# }
|
||||
Reference in New Issue
Block a user