Skip to content

hmd.mx

3 messages · krmartina, MacQueen, Don

#
I have trouble using function hmd.mx
I have all packages required.
I call function:

slovenia <- hmd.mx("SVN", username, password, "Slovenia") :

and I get this error:
  NAs introduced by coercion

And if I then call slovenia, I get:
Mortality data for Slovenia
    Series: female male total
    Years: 1983 - 2009
    Ages:  0 - 110 

But I do not get any value (mortality, ...):
NULL
NULL

I tried also for two different countries and I got the same result.

Can please anybody help me with this problem?

Thank you very much.
Martina






--
View this message in context: http://r.789695.n4.nabble.com/hmd-mx-tp4630350.html
Sent from the R help mailing list archive at Nabble.com.
#
Type
  str(slovenia)
or perhaps
  names(slovenia)
to find out more about how the slovenia object is structured, and the
correct names of its elements.
Also 
  ?hmd.mx
(also see,for example,
http://help.pop.psu.edu/help-by-software-package/r-project/demography-in-r/
demography-package-for-r)

Also, since hmd.mx is not part of base R, please identify what package it
is from.

The error message typically comes from converting character to numeric
when some of the values are not numeric. Try, for example,
  as.numeric( c('1','2','A','4') )

-Don