Posts

Showing posts from January 26, 2019

Splitting Strings based on capital letters (R)

Image
3 I'm extracting song lyrics with Vagalume's API. library(vagalumeR) library(tibble) library(stringr) set.seed(1234) key = "7a67715b6d0dd6edf7556cc0d176e4ac" musicas = as.tibble(topLyrics(name = "seu-jorge", message = TRUE)) musica = sample(musicas$id.top, 1) letra = lyrics(identifier = musica, type = "id", artist = "seu-jorge", key = key) However, letra is just one big block of text and I want to split it into smaller ones str_split(string = as.character(letra), "[[:upper:]]") And this is what I get: [1] "Pretinha" "aço tudo pelo nosso amor" [3] "aço tudo pelo bem de nosso bem (meu bem)" " saudade é minha do

Taxaceae

Image
Taxaceae Ilustração científica de Taxus baccata Classificação científica Reino: Plantae Superdivisão: Spermatophyta Divisão: Pinophyta Classe: Pinopsida Ordem: Pinales Família: Taxaceae Géneros Taxus Pseudotaxus Austrotaxus

Cephalotaxaceae

Image
Cephalotaxaceae Cephalotaxus harringtonii Classificação científica Reino: Plantae Superdivisão: Spermatophyta Divisão: Pinophyta Classe: Pinopsida Ordem: Pinales Família: Cephalotaxaceae Géneros Amentotaxus Cephalotaxus Torreya