Linguagem R:Dataverse

De BrapciWiki
Revisão de 18h23min de 13 de agosto de 2021 por Renefgj (discussão | contribs) (Criou página com '= Uso do R com o Dataverse = # 1. Load Datavarse library library("dataverse") # 2. Stored as an environment variable called DATAVERSE_KEY and copy the API TOKEN Sys.sete...')
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para navegação Ir para pesquisar

Uso do R com o Dataverse

# 1. Load Datavarse library  
library("dataverse")
# 2. Stored as an environment variable called DATAVERSE_KEY and copy the API TOKEN
Sys.setenv("DATAVERSE_KEY" = "numeros da chave")
# 3. Specifying the server installation
Sys.setenv("DATAVERSE_SERVER" = "dataverse.nutricao.ufrj.br")
# 4. Checking for "storageIdentifier" for each dataset
dataverse_search("Brazilian Consortium of Maternal and Child Nutrition (CONMAI)", per_page = 40,type = "dataset")[c("name", "type", 
"storageIdentifier", "name_of_dataverse")]