Hi Daniel, hi listfolk,
I had a bit of chat off-list with Daniel and it looks like this issue
was caused by importing data with commas as the decimal separator rather
than periods (e.g., "0,3" rather than "0.3"). In this case R interprets
these variables as characters rather than numbers, which you can't
smooth over (with most smoothers). The best way to check for this is to
use the str() function in R on your data and it will tell you what the
type of each column is. Generally speaking, you'd want your variables
you're smoothing over to be numeric.
To correct this, you can run something like this, if your "bad" variable
is in column var1 of data.frame dat:
dat$var1 <- as.numeric(sub(",", ".", dat$var1))
Hope this helps,
--dave
> *Daniel Ignacio Medina Oviedo*
> M.V., Dipl. Universidad de Chile - UACH
> MSc Imperial College London
>
> --
> You received this message because you are subscribed to the Google
> Groups "distance-sampling" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
distance-sampl...@googlegroups.com
> <mailto:
distance-sampl...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/distance-sampling/CAF3Mcivj0dX7O5-OhoDgrAU6R7zLC%2BbG-Ha%2Bp_2oODovg%3D2R3g%40mail.gmail.com
> <
https://groups.google.com/d/msgid/distance-sampling/CAF3Mcivj0dX7O5-OhoDgrAU6R7zLC%2BbG-Ha%2Bp_2oODovg%3D2R3g%40mail.gmail.com?utm_medium=email&utm_source=footer>.