Dear Rstudio Community,
I have a problem running my script in R...
I am using tidyverse and readxl.
The dataset (xl file) is a simple matrix containing expression values.
Some columns are missing some data, so i wish to determine if my data first of all do miss any data, so i can remove the columns afterwards.
For some reason it gives me a evalutaion error eventhough it loads the files fine..
Have anyone encountered a simular problem to mine?
# Load libraries
> # ------------------------------------------------------------------------------
> library('tidyverse')
> library('readxl')
>
> # Load data
> # ------------------------------------------------------------------------------
> f = 'C:/Users/Torsten/Desktop/Bachelor/data/_raw/data_file.xlsx'
> all_markers = read_excel(path = f, col_names = FALSE, sheet = 'all markers')
New names:
* `` -> `..1`
* `` -> `..2`
* `` -> `..3`
* `` -> `..4`
* `` -> `..5`
* ... and 83 more
> q_pcr = read_excel(path = f, col_names = FALSE, sheet = 'Q-PCR', skip = 1)
New names:
* `` -> `..1`
* `` -> `..2`
* `` -> `..3`
* `` -> `..4`
* `` -> `..5`
* ... and 28 more
>
> # Wrangle data
> # ------------------------------------------------------------------------------
>
> # Check missingness in variables
> all_markers %>% summarise_all(function(x){sum(is.na(x))}) %>%
+ select_if(function(x){ifelse(x>0,TRUE,FALSE)}) %>% print
Error in summarise_impl(.data, dots) :
Evaluation error: ..1 used in an incorrect context, no ... to look in.