Professional Documents
Culture Documents
R
lauro
2020-08-29
library(TeachingSampling)
##
## Attaching package: 'dplyr'
data(Lucy)
attach(Lucy)
View (Lucy)
#Tamano de muestra
n<-60
muestraproy<-sample(1:nrow(Lucy),size =n, replace=FALSE)
muestraproy
## [1] 1826 838 864 771 723 661 1259 1928 1799 2015 679 1821 52 931
1878
## [16] 540 2102 1363 1720 1551 813 1663 408 260 536 2208 1574 402 1167
923
## [31] 975 1471 1157 1269 321 1503 1131 1794 1847 2355 2374 425 1168 347
1866
## [46] 738 119 1806 2152 1667 887 861 942 2350 1545 1381 435 532 138
1804
#prop.table(tabla1)
#pie(ptop.table(tabla1))