sdmpredictors icon indicating copy to clipboard operation
sdmpredictors copied to clipboard

Unsure of value for first row of current derivation column of layer_info

Open annakrystalli opened this issue 6 years ago • 3 comments

Hi,

I'm trying to fill from above the '' values in a couple of columns in the tables retuned via get_layer_info() but I'm having trouble identifying the correct value in a table in which the first value is ''. See below.

head(sdmpredictors::get_layers_info()$current$derivation)
#> [1] "''"                                              
#> [2] "mean, thin-plate smoothing splines"              
#> [3] "mean range, thin-plate smoothing splines"        
#> [4] "''"                                              
#> [5] "standard deviation, thin-plate smoothing splines"
#> [6] "maximum, thin-plate smoothing splines"

Created on 2020-03-30 by the reprex package (v0.3.0)

Any ideas?

annakrystalli avatar Mar 30 '20 15:03 annakrystalli

Hi Anna,

Not sure why it is showing up as "''", it should be NA or empty as it is defined in the "original" file which can be found in data-raw/layers.csv. Sometimes the derivation is not provided, or the layer is itself the result of a calculation of two "derived" layers.

samuelbosch avatar Mar 30 '20 17:03 samuelbosch

Thanks for the swift response @samuelbosch !

OK so I can safely ignore it as NA then right? I am interpreting " properly in the rest of the rows though right? ie fill from above?

annakrystalli avatar Mar 31 '20 09:03 annakrystalli

Hi, sorry for the late reply. In hand writing, a list with '' may indicate that the value is the same than above, but it doesn't seem to be the case here, and we are not writing by hand here either :)

These '' are given already here: https://github.com/lifewatch/sdmpredictors/blob/master/data-raw/layers.csv, so we rather remove these and just let it be NA.

I'll do this whenever I find some time.

Thanks for spotting @annakrystalli !

salvafern avatar Apr 21 '22 12:04 salvafern