Description Usage Arguments Details Value Examples
View source: R/country_pattern.R
Country-wise and year-wise output for a defined period.
1 2 | country_pattern(affiliations, pub_years = NULL, countries = NULL,
only_first_author = F)
|
affiliations |
A text vector containing affiliation (country) information |
pub_years |
A numeric vector containing publication years |
countries |
A list of countries (optional) |
only_first_author |
Logical. If to find the author list by the first authors |
The function returns year and country-wise output matrix if the publication years are provided. If only affliation data is provided the country-wise output is returned as a single vector instead of a matrix.
A list containing country output and other details.
1 2 3 4 5 6 7 8 9 10 11 | affiliations<-c("Stanford University, Stanford, CA, United States; Montreal, QC, Canada",
"Stanford University, United States; Google Inc., United States",
"University of Michigan, Ann Arbor, MI 48109-2122, United States;
Tsinghua University, Beijing 100084, China",
"Imperial College London, London, SW7 2BZ, United Kingdom;
ENSTA, Ecole Polytechnique, Palaiseau, 91761, France")
pub_years<-c(2012,2012,2013,2014)
country_pattern( affiliations, pub_years)
country_pattern(affiliations)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.