Dear R-expert,

I hope that you are doing well.

I am interested to calculate the age heaping for each digit (0,1,...,9)
based on my data set. However, when I run the R code, I got the following
errors. Please help me in this regard.

##########################################
library(remotes)
install_github("timriffe/DemoTools")

###
Downloading GitHub repo timriffe/DemoTools@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

 1: All
 2: CRAN packages only
 3: None

Enter one or more numbers, or an empty line to skip updates: 1

*After installing some packages, I got the following error message*

package ‘backports’ successfully unpacked and MD5 sums checked
Error: Failed to install 'DemoTools' from GitHub:
  (converted from warning) cannot remove prior installation of package
‘backports’

I am attaching the R-code and data file along with this email.

Please help me in this regard.

Thanks in advance.
-- 
Best Regards,
Md. Moyazzem Hossain
Associate Professor
Department of Statistics
Jahangirnagar University
Savar, Dhaka-1342
Bangladesh
Website: http://www.juniv.edu/teachers/hossainmm
Research: *Google Scholar
<https://scholar.google.com/citations?user=-U03XCgAAAAJ&hl=en&oi=ao>*;
*ResearchGate
<https://www.researchgate.net/profile/Md_Hossain107>*; *ORCID iD
<https://orcid.org/0000-0003-3593-6936>*
###############################################################################
library(remotes)
install_github("timriffe/DemoTools")

library(DemoTools)

###########################################
Age <- 0:99
length(Age)

data=read.csv("D:/age.csv", header=FALSE)
pop1m_pasex=as.matrix(data)
length(pop1m_pasex)

w05 <- check_heaping_whipple(pop1m_pasex, Age, 25, 60, digit = c(0,5))

w0 <- check_heaping_whipple(pop1m_pasex, Age, 25, 60, digit = 0)
w5 <- check_heaping_whipple(pop1m_pasex, Age, 25, 60, digit = 5)

# Whipple types
w3=check_heaping_whipple(pop1m_pasex, Age, 25, 60, digit = 3)


______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to