This is the link of the source data, https://dcc.icgc.org/search?files={"from":1}&filters={"donor":{"projectId":{"is":["HNSC-US","ORCA-IN","THCA-SA","THCA-US"]},"primarySite":{"is":["Head%20and%20neck"]}}}&donors={"from":1}
With quotation, there is a different error pops up as shown below (with some minor touch-up for the data frame name):
library(readxl)
ClinData1 <- read_excel("donor(1).xlsx")
#> Error: `path` does not exist: 'donor(1).xlsx'
ClinData1 %>% filter(ClinData1$icgc_donor_id == "DO38988", "DO38968", "DO38962"
, "DO14966", "DO38937", "DO14870", "DO48165", "DO14534",
"DO14510", "DO15735", "DO14408", "DO14440", "DO49054",
"DO14726", "DO48143", "DO48070", "DO15927", "DO14152",
"DO14161", "DO40263", "DO14363", "DO40646", "DO14325",
"DO14333", "DO40592", "DO40586", "DO14288", "DO14290",
"DO40520", "DO14165", "DO40087"," DO16045", "DO14153",
"DO40322")
#> Error in ClinData1 %>% filter(ClinData1$icgc_donor_id == "DO38988", "DO38968", : could not find function "%>%"
By using "negative subset", this error pops up
## Edit Clinical Data----------------------------------------------------------
library(readxl)
ClinData1 <- read_excel("donor(1).xlsx")
#> Error: `path` does not exist: 'donor(1).xlsx'
omits <- c("DO38988", "DO38968", "DO38962", "DO14966", "DO38937", "DO14870",
"DO48165", "DO14534", "DO14510", "DO15735", "DO14408", "DO14440",
"DO49054", "DO14726", "DO48143", "DO48070", "DO15927", "DO14152",
"DO14161", "DO40263", "DO14363", "DO40646", "DO14325", "DO14333",
"DO40592", "DO40586", "DO14288", "DO14290", "DO40520", "DO14165",
"DO40087", "DO16045", "DO14153", "DO40322")
keeps <- ClinData1[!(ClinData1$icgc_donor_id %in% omits)]
#> Error in eval(expr, envir, enclos): object 'ClinData1' not found
Besides, how would i know filter() works for logical test only? I usually search by ?function in R. Is there other better option for an easy understanding on the basic of R function? Went through some intro from YouTube and since I have zero background and just started using R for research purpose, would like a easy understand tutorial in layman term. Thanks!