Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # checked
- cosmic_count <- function(cosmic) {
- if(cosmic=="") {
- 0
- } else {
- sum(
- as.numeric(
- unlist(
- strsplit(gsub("^ID=.*OCCURENCE=|\\([^,]+\\)", "", cosmic), ",")
- )
- )
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement