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
rm(list = ls(all = TRUE)) | |
setwd("~/Dropbox/R-workspace/Censo da Educacao Superior/") | |
dir() | |
# ------------------------------ | |
# importando microdados com as funções desenvolvidas por Marcos F. Silva | |
# remove todos os comentários dos dicionários |
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
# --------------------------------------------- | |
rm(list = ls(all = TRUE)) | |
setwd("~/Dropbox/R-workspace/2013 tutorial microdados") | |
options(scipen = 8) # mostrar até 8 casas decimais | |
dir() | |
# --------------------------------------------- | |
# informações a serem retiradas da PNAD 2011 | |
# | |
# Nome Inicio Tamanho Descrição |
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
# ---------------------------------------------- | |
# | |
# instalando o pacote 'SAScii' elaborado por Anthony Joseph Damico | |
# install.packages('SAScii') | |
# carregando o pacote | |
library(SAScii) | |
# lendo o dicionário da PNAD 2011 pessoas | |
parse.SAScii("2011_PES_input.sas") |
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
# ---------------------------------------------- | |
# | |
# Convertendo arquivos txt em csv usando as funções cridadas por Marcos F | |
# Silva carregando o dicionário disponibilizado pelo IBGE | |
load("2011_dicPNAD.RData") | |
# listando itens da memória | |
ls() | |
# analisando as primeiras 15 linhas dos dicionários |
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
# ---------------------------------------------- | |
# | |
# Acessar dados de arquivo csv via sqldf | |
# instalar o pacote sqldf() install.packages(sqldf) | |
# carregar o pacote | |
library(sqldf) | |
# listar itens no diretório de trabalho |
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
# ---------------------------------------------- | |
# | |
# Primeiros passos com o SQLite carregar pacote RSQLite | |
library("RSQLite") | |
# criar uma base de dados | |
sqldf("attach pnad as new") | |
# estabelecer uma conexão | |
drv <- dbDriver("SQLite") |
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
#------------------------ | |
# 22 de julho de 2013 | |
# Roney Fraga Souza | |
# Trabalhar com dados dos censos 2000 e 2010 | |
# censo 2000 | |
# página 85 | |
# V0102 - UF (página 122) | |
# V1002 - Mesoregião | |
# V1003 - Microregião |
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
rm(list = ls(all = TRUE)) | |
setwd("~/Dropbox/R-workspace/Censo da Educacao Superior/") | |
dir() | |
# ------------------------------ | |
# importando microdados com as funções desenvolvidas por Marcos F. Silva | |
# remove todos os comentários dos dicionários |
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
filetype on | |
syntax enable | |
filetype plugin on | |
filetype indent on | |
""set modifiable | |
set nocompatible | |
set encoding=utf-8 |
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
# Change the prefix key to Ctrl-a. | |
#unbind C-b | |
#set -g prefix C-b | |
# Change the last active window keybinding. | |
unbind l | |
bind C-a last-window | |
# Change the copy mode keybinding. | |
#unbind [ |
OlderNewer