Это старая версия документа!


Continental Curst: Lower, Rudnik and Gao, 2003

Details

<data plot> Reference [wiki]: Rudnick, R. L., Gao, S. X. Composition of the continental crust, 2003 [ref] Data: bulk Input: ppm </data> Использовать Проверить

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

Source

  1. require('ggplot');
  2.  
  3. cmp <- read.csv("constants_continental_curst_compositions.csv", sep=";", stringsAsFactors=F);
  4.  
  5. spdgrams.ree_continental_curst_lower <- 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.  
  16. pmsc <- c();
  17.  
  18. for (n in ns)
  19. pmsc <- c(pmsc, subset(cmp, component == n)$lower);
  20.  
  21. ds <- selectNames(ppm_data,c(paste0(ns,'_ppm')));
  22.  
  23. names(ds) <- ns;
  24.  
  25. ret <- c();
  26.  
  27. values <- cbind(ppm_data$Name, rowApply(`/`,ds,pmsc));
  28. names(values)[1] <- 'Name';
  29.  
  30. ret$values <- values;
  31. ret$grades <- ns;
  32. ret$labels <- c('REE', 'Sample/Continental curst, Lower');
  33.  
  34. return(ret);
  35. }
  • spdgrams/ree_continental_curst_lower.1458661241.txt.gz
  • Последние изменения: 2018/11/12 15:08
  • (внешнее изменение)