Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4b8f567

Browse files
committedSep 19, 2018
Bug fix on attribute data
There was an incorrectly designed if statement which meant that NA's were being returned from the function instead of being replaced by the missing value. This has now been fixed
1 parent 713ba46 commit 4b8f567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎R/setAttributes.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ attribute_data <- function(df,info_df,miss_value = 0,averaging_buffer=NA) {
6565
df$cont_vals <- extract(info_df_ras, df[c("x", "y")], method="simple")
6666

6767
# Check if there are missing values, if not then skip this
68-
if(length(is.na(aux$surface_denisty)) != 0){
68+
if(length(is.na(df$cont_vals)) != 0){
6969

7070
# Now check if there is an averaging buffer when dealing with missing values
7171
if(!(is.na(averaging_buffer))){

0 commit comments

Comments
 (0)
Please sign in to comment.