Importando datos
library(readr)
## Warning: package 'readr' was built under R version 4.4.3
real_state_real_state <- read_delim("real_state - real_state.csv",
delim = ";", escape_double = FALSE, trim_ws = TRUE)
## Rows: 414 Columns: 1
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ";"
## chr (1): house_age,dist_metro,num_stores,lati,longi,price_house
##
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
head(real_state_real_state)
## # A tibble: 6 × 1
## `house_age,dist_metro,num_stores,lati,longi,price_house`
## <chr>
## 1 32,8.487.882,10,2.498.298,12.154.024,37.9
## 2 19.5,3.065.947,9,2.498.034,12.153.951,42.2
## 3 13.3,5.619.845,5,2.498.746,12.154.391,47.3
## 4 13.3,5.619.845,5,2.498.746,12.154.391,54.8
## 5 5,3.905.684,5,2.497.937,12.154.245,43.1
## 6 7.1,2175.03,3,2.496.305,12.151.254,32.1
Importando datos de #base2
library(readxl)
## Warning: package 'readxl' was built under R version 4.4.3
real_state_excel <- read_excel("real_state_excel.xlsx")
head(real_state_real_state)
## # A tibble: 6 × 1
## `house_age,dist_metro,num_stores,lati,longi,price_house`
## <chr>
## 1 32,8.487.882,10,2.498.298,12.154.024,37.9
## 2 19.5,3.065.947,9,2.498.034,12.153.951,42.2
## 3 13.3,5.619.845,5,2.498.746,12.154.391,47.3
## 4 13.3,5.619.845,5,2.498.746,12.154.391,54.8
## 5 5,3.905.684,5,2.497.937,12.154.245,43.1
## 6 7.1,2175.03,3,2.496.305,12.151.254,32.1
importando R datos
real_state...real_state <- read.csv("C:/Users/HP/Downloads/real_state - real_state.csv")
head(real_state_real_state)
## # A tibble: 6 × 1
## `house_age,dist_metro,num_stores,lati,longi,price_house`
## <chr>
## 1 32,8.487.882,10,2.498.298,12.154.024,37.9
## 2 19.5,3.065.947,9,2.498.034,12.153.951,42.2
## 3 13.3,5.619.845,5,2.498.746,12.154.391,47.3
## 4 13.3,5.619.845,5,2.498.746,12.154.391,54.8
## 5 5,3.905.684,5,2.497.937,12.154.245,43.1
## 6 7.1,2175.03,3,2.496.305,12.151.254,32.1
Importando datos de SPSS
library(haven)
## Warning: package 'haven' was built under R version 4.4.3
empresas <- read_sav("empresas.sav")
head(empresas)
## # A tibble: 6 × 10
## ID AGR MIN MAN CEN CON SER BAN SECSER TC
## <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 Bélgica 3.3 0.9 27.6 0.9 8.2 19.1 6.2 26.6 7.2
## 2 Dinamarca 9.2 0.1 21.8 0.6 8.3 14.6 6.5 32.2 7.1
## 3 Francia 10.8 0.8 27.5 0.9 8.9 16.8 6 22.6 5.7
## 4 Alemania O 6.7 1.3 35.8 0.9 7.3 14.4 5 22.3 6.1
## 5 Irlanda 23.2 1 20.7 1.3 7.5 16.8 2.8 20.8 6.1
## 6 Italia 15.9 0.6 27.6 0.5 10 18.1 1.6 20.1 5.7
Importaciones de datos STATA
library(haven)
pwt91_capital_detail <- read_dta("pwt91_capital_detail.dta")
head(pwt91_capital_detail, n=30)
## # A tibble: 30 × 34
## countrycode year Ic_Struc Ic_Mach Ic_TraEq Ic_Other Ip_Struc Ip_Mach
## <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 ABW 1950 NA NA NA NA NA NA
## 2 ABW 1951 NA NA NA NA NA NA
## 3 ABW 1952 NA NA NA NA NA NA
## 4 ABW 1953 NA NA NA NA NA NA
## 5 ABW 1954 NA NA NA NA NA NA
## 6 ABW 1955 NA NA NA NA NA NA
## 7 ABW 1956 NA NA NA NA NA NA
## 8 ABW 1957 NA NA NA NA NA NA
## 9 ABW 1958 NA NA NA NA NA NA
## 10 ABW 1959 NA NA NA NA NA NA
## # ℹ 20 more rows
## # ℹ 26 more variables: Ip_TraEq <dbl>, Ip_Other <dbl>, Nc_Struc <dbl>,
## # Nc_Mach <dbl>, Nc_TraEq <dbl>, Nc_Other <dbl>, Np_Struc <dbl>,
## # Np_Mach <dbl>, Np_TraEq <dbl>, Np_Other <dbl>, Dc_Struc <dbl>,
## # Dc_Mach <dbl>, Dc_TraEq <dbl>, Dc_Other <dbl>, Kc_Struc <dbl>,
## # Kc_Mach <dbl>, Kc_TraEq <dbl>, Kc_Other <dbl>, Kp_Struc <dbl>,
## # Kp_Mach <dbl>, Kp_TraEq <dbl>, Kp_Other <dbl>, Ksh_Struc <dbl>, …