shift-share | R Documentation |
万年庆,李红忠,史本林.基于偏离—份额法的我国农民收入结构演进的省际比较[J].地理研究,2012,31(04):672-686.
shift-share(start,end) start and end should be in same data struction.
x |
start:region1,region2 and so on in columns;the last column should be the province or country which includes all region1,2,3,.... and of which the value is regions' sum. end: the same as 'start'
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets. ## The function is currently defined as function (x) { }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.