Comments (2)
Thanks for the quick reply. Appreciated.
I read on this forum that re-installing dplyr
would help. I also made sure that dplyr
was loaded after MASS
.
For any other person experiencing this issue run these commands before doing a dplyr
select
:
detach("package:dplyr", unload=TRUE)
install.packages("dplyr")
detach("package:MASS", unload=TRUE)
library(MASS)
library(dplyr)
from labs.
I cannot reproduce your problem. Please check carefully.
install_github("genomicsclass/dagdata")
Skipping install of 'dagdata' from a github remote, the SHA1 (b4861304)
has not changed since last install.
- Use
force = TRUE
to force installation*
dir <- system.file(package="dagdata")
filename <- file.path(dir,"extdata/mice_pheno.csv")
dat <- read.csv(filename)
controlPopulation <- filter(dat,Sex == "F" & Diet == "chow") %>%
select(Bodyweight) %>% unlisthead(controlPopulation)
Bodyweight1 Bodyweight2 Bodyweight3 Bodyweight4 Bodyweight5 Bodyweight6
27.03 24.80 27.02 28.07 23.55 22.72
sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.6 (El Capitan)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_0.5.0.9000 devtools_1.12.0 downloader_0.4 rafalib_1.0.0
[5] rmarkdown_1.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.6 digest_0.6.9 withr_1.0.2
assertthat_0.1
[5] R6_2.1.2 DBI_0.4-1 git2r_0.15.0 magrittr_1.5
[9] evaluate_0.9 httr_1.2.1 stringi_1.1.1
lazyeval_0.2.0
[13] curl_1.0 RColorBrewer_1.1-2 tools_3.3.1
stringr_1.0.0
[17] memoise_1.0.0 htmltools_0.3.5 tibble_1.1
On Tue, Aug 16, 2016 at 10:55 AM, Jacob Knobel [email protected]
wrote:
Hi all,
Running the following code causes an error:
Error i select(., Bodyweight) : unused argument (Bodyweight)Here is the full code:
library(rafalib)
library(downloader)
library(devtools)
library(dplyr)install_github("genomicsclass/dagdata")
dir <- system.file(package="dagdata")
filename <- file.path(dir,"extdata/mice_pheno.csv")
dat <- read.csv(filename)controlPopulation <- filter(dat,Sex == "F" & Diet == "chow") %>% select(Bodyweight) %>% unlist
I am running the following R installation through RStudio:
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)I attach a screenshot from RStudio too.
[image: sd]
https://cloud.githubusercontent.com/assets/21022914/17703477/2ec77d00-63d2-11e6-8503-621e03c45861.png—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#58, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEaOwipsCYTtAGUE20POs14D_p0r7_e5ks5qgc9rgaJpZM4JlgCp
.
Vincent J. Carey, Ph.D.
Professor of Medicine
Channing Division of Network Medicine
Brigham and Women's Hospital
Harvard Medical School
181 Longwood Avenue
Boston, MA 02115 USA
from labs.
Related Issues (20)
- Ambiguous sentence in advinference/multiple_testing.Rmd HOT 1
- How could I get the answer of the exercises in PH525x series? HOT 2
- Permission to port over dplyr tutorial to DataFramesMeta.jl HOT 2
- Missing RData File for the quiz
- Can't make progression in Swirl package due to error
- EdX R
- getGEO commands in multiple Rmds give HTTP 404 error HOT 2
- stack1kg error in dataman2017.Rmd HOT 6
- gbm, assayNames errors in dataman2017.Rmd HOT 5
- GRanges objects don't support lapply, unlist at the moment HOT 3
- getFirehoseData fails in tcga.Rmd: cannot open the connection HOT 1
- Error using minfi::plotSex in methyl/minfi.Rmd HOT 1
- 404 not found error in dataman_2019.Rmd HOT 4
- Use of `download()` without `library(downloader)` or `downloader` HOT 3
- different result of t.test in type II error simulation HOT 1
- Different t.test result in type II error simulation HOT 1
- Issue with devtools and genomicsclass/GSE5859Subset HOT 4
- Incomplete sentence in Factor Analysis chapter HOT 1
- Error in knitr of all RMD files HOT 2
- New run of the courses? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labs.