R read.dta 读取Stata二进制文件 R语言read.dta位于foreign包(package)。 说明 将Stata 版本 5-12 二进制格式的文件读入数据帧。 《冰雪奇缘》:12 以后将不支持 Stata 格式。 用法 read.dta(file, convert.dates =TRUE, convert.factors =TRUE, missing.type =FALSE, convert.underscore =FALSE, warn.missing....
path <- system.file("examples","iris.dta", package ="haven")read_dta(path)#> # A tibble: 150 × 5#> sepallength sepalwidth petallength petalwidth species#> <dbl> <dbl> <dbl> <dbl> <chr>#> 1 5.10 3.5 1.40 0.200 setosa#> 2 4.90 3 1.40 0.200 setosa#> 3 4.70 3.20 1.30 0.200...
library(haven) # haven package now available on cran df <- read_dta('c:/somefile.dta') Run Code Online (Sandbox Code Playgroud) 请参阅:https://github.com/hadley/haven 只是想知道,“ haven”在格式方面似乎不如“ readstata13”那么准确,将许多数字变量标记为字符变量。所以对于那些使用`haven`...
pandas is a Python package that provides fast, flexible, and expressive data structures designed to make working with "relational" or "labeled" data both easy and intuitive. It aims to be the fundamental high-level building block for doing practical, real world data analysis in Python. Additiona...
I had to keep myself cool.I was in middle school after all.But when I got every chance and I was alone.I checked each present under the tree.I read every tag(标签)and felt every package,guessing at the contents within.I examined each gift so often that I could tell...