This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# análise das publicações dos professores do mestrado entre 2021 e setembro de 2022 | |
# utilizando o qualis 2017_2020 como referência | |
library(getLattes) | |
library(xml2) | |
library(dplyr) | |
library(purrr) | |
library(tibble) | |
library(tidyr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env Rscript | |
# do | |
# chmod +x dicsyn.R | |
# run | |
# ./dicsyn.R idioma termo | |
suppressMessages(library(rvest)) | |
suppressMessages(library(stringr)) | |
suppressMessages(library(pipeR)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------ | |
# pacotes a serem carregados | |
# ------------------------------ | |
library(tidyverse) | |
library(stringr) | |
library(Hmisc) | |
library(downloader) | |
library(bibliometrix) | |
library(igraph) | |
library(pipeR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.unix.com/shell-programming-and-scripting/218393-batch-script-unzip-rename-file.html | |
for i in *.zip | |
do | |
n=$(unzip -lqq $i | awk '{print $NF}') | |
e=${n#*.} | |
unzip $i && mv $n ${i%%_*}".$e" | |
rm $i | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setwd('xmls/') | |
lfiles = system("ls -lt --full-time | awk -v OFS=' ' 'NR>1 { print $9}' ", intern=TRUE) | |
head(lfiles) | |
df <- as.data.frame(lfiles) | |
df$nchar <- nchar(as.character(df[,1])) | |
head(df) | |
table(df[,2]) | |
# > table(df[,2]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env Rscript | |
# to rum this code do: | |
# chmod +x process-analysis-tail.R | |
# ./process-analysis.R | |
# set work directory | |
if( length(grep('xmls',dir()))>0 ) { | |
setwd('xmls') } else { | |
stop('The xmls folder does not exist.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env Rscript | |
# to rum this code do: | |
# chmod +x process-restart.R | |
# ./process-analysis.R | |
# disable scientific notation | |
options(scipen=999) | |
short <- read.csv('short_ids.csv', header=FALSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env Rscript | |
# to rum this code do: | |
# chmod +x process-analysis.R | |
# ./process-analysis.R | |
# set work directory | |
if( length(grep('xmls',dir()))>0 ) { | |
setwd('xmls') } else { | |
stop('The xmls folder does not exist.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------ | |
# início do código | |
# ------------------------------ | |
# baixar o arquivo 'ver2.rds' nesse link: | |
# https://db.tt/13dT9XQI | |
ver2 <- readRDS("~/Downloads/ver2.rds") | |
grupo <- list() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/curl -fLA Homebrew 0.9.5 (Ruby 2.0.0-451; Mac OS X 10.9.4) https://raw.github.com/neovim/neovim/master/neovim.rb -o /Library/Caches/Homebrew/Formula/neovim.rb | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 | |
100 501 100 501 0 0 137 0 0:00:03 0:00:03 --:--:-- 418 | |
==> Cloning https://github.com/neovim/neovim.git | |
git --git-dir /Library/Caches/Homebrew/neovim--git/.git status -s | |
Updating /Library/Caches/Homebrew/neovim--git | |
git config remote.origin.url https://github.com/neovim/neovim.git | |
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master |
NewerOlder