不是保留没有NA的行...我只对带有NA的行感兴趣
我想使用过滤器功能,但这似乎不起作用
{
"name": "szymach/c-pchart",
"version": "3.0.7",
"source": {
"type": "git",
"url": "https://github.com/szymach/c-pchart.git",
"reference": "e234d6ca5d9bc9eb39301fca2953c7cf01e9f2a8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/szymach/c-pchart/zipball/e234d6ca5d9bc9eb39301fca2953c7cf01e9f2a8",
"reference": "e234d6ca5d9bc9eb39301fca2953c7cf01e9f2a8",
"shasum": ""
},
"require": {
"ext-gd": "*",
"php": ">=5.5"
},
"require-dev": {
"behat/behat": "~3.0",
"behat/mink": "~1.7",
"behat/mink-goutte-driver": "~1.2",
"bossa/phpspec2-expect": "~1.0",
"sensiolabs/behat-page-object-extension": "~2.0@dev",
"squizlabs/php_codesniffer": "~2.3"
},
"type": "project",
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
}
},
"autoload": {
"psr-4": {
"CpChart\\": "src/"
},
"files": [
"src/Resources/data/constants.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-3.0"
],
"authors": [
{
"name": "Jean-Damien Pogolotti",
"homepage": "http://www.pchart.net",
"role": "Creator of the original pChart library"
},
{
"name": "Piotr Szymaszek",
"homepage": "https://github.com/szymach",
"role": "Developer of the CpChart wrapper package"
}
],
"description": "Port of \"pChart\" library into PHP 5",
"homepage": "https://github.com/szymach/c-pchart",
"keywords": [
"CpChart",
"c-pChart",
"charts",
"pchart",
"statistics"
],
"time": "2016-04-16 16:30:22"
},
数据df:
df %>% filter(p1==NA)
所以我只想与那些拥有NA的人一起创建一个子集