2021年3月19日星期五

Error:UseMethod("select_") : no applicable method for 'select_' applied to an object of class "character" to get data in usable format for histograms

Here is my code,

library(ade4)  library(factoextra)  library(magrittr)  library(textshape)  library(describedata)  library(ggplot2)  library(dplyr)  bw.phen <- "BWphenology"  #select the columns you want to find correlations between  ##columns must be numeric  as.numeric_version(BWphenology)  bwphenselect <- select(bw.phen) %>%      select(bud_break_jul, first_pistil_jul, last_pistil_jul, first_pollen_jul,           last_pollen_jul, percent_overlap, flower_type, harvest_date_jul,            harvest_date_d.a.d., season_length)    #find correlations  cor(na.omit(bw.phenselect))  

I keep getting the error in use method select error and have tried importing the data from text and base, manually setting all columns in the data set to be numeric, as well as using the as. numeric function. What else could I Try?

https://stackoverflow.com/questions/66716925/errorusemethodselect-no-applicable-method-for-select-applied-to-an-ob March 20, 2021 at 07:48AM

没有评论:

发表评论