The ratio of branching fractions R-K/pi = B (B-c(+) -> J/psi K+)/B(B-c(+) -> J/psi pi(+)) is measured with pp collision data collected by the LHCb experiment at centre-of-mass energies of 7TeV and 8TeV, corresponding to an integrated luminosity of 3 fb(-1). It is found to be R-K/pi = 0.079 +/- 0.007 +/- 0.003, where the first uncertainty is statistical and the second is systematic. This measurement is consistent with the previous LHCb result, while the uncertainties are significantly reduced.