Giter VIP home page Giter VIP logo

Comments (2)

knobel-dk avatar knobel-dk commented on July 21, 2024 1

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.

vjcitn avatar vjcitn commented on July 21, 2024

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) %>% unlist

head(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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.