Continental Curst: Upper, Rudnik and Gao, 2003

Details

Reference Rudnick, R. L., Gao, S. X. Composition of the continental crust, 2003 [ref]
Data bulk
Input ppm

Использовать Проверить

  • заголовок
  • краткое описание
  • статья
  • ссылка
  • карточка
  • подробное описание
  • код
  • тест

Source

  1. require('ggplot2');
  2.  
  3. cmp <- read.csv("constants_continental_curst_rudnick2003.csv", sep=";", stringsAsFactors=F);
  4.  
  5. spdgrams.ree_continental_curst_upper <- function(ppm_data, el_order = NULL)
  6. {
  7. ns <- el_order;
  8. if (is.null(el_order))
  9. {
  10. ns <- c('Cs', 'Rb', 'Ba', 'Th', 'U', 'Nb', 'Ta', 'La', 'Ce', 'Pb', 'Pr',
  11. 'Sr', 'Nd', 'Zr', 'Hf', 'Sm', 'Eu', 'Gd', 'Tb', 'Dy', 'Y', 'Ho',
  12. 'Er', 'Tm', 'Yb', 'Lu');
  13. }
  14.  
  15. pmsc <- c();
  16.  
  17. for (n in ns)
  18. pmsc <- c(pmsc, subset(cmp, component == n)$upper);
  19.  
  20. ds <- selectNames(ppm_data,c(paste0(ns,'_ppm')));
  21.  
  22. names(ds) <- ns;
  23.  
  24. ret <- c();
  25.  
  26. values <- cbind(ppm_data$Name, rowApply(`/`,ds,pmsc));
  27. names(values)[1] <- 'Name';
  28.  
  29. ret$values <- values;
  30. ret$grades <- ns;
  31. ret$labels <- c('REE', 'Sample/Continental curst, Upper');
  32.  
  33. return(ret);
  34. }
  • spdgrams/ree_continental_curst_upper.txt
  • Последние изменения: 2018/11/12 15:07
  • (внешнее изменение)