r - Why "object not interpretable as a factor" error coming in correct code? -
i running code in r , got stuck @ point showing me error "object not interpretable factor" again , again .i searched , @ stack overflow found similar problem asked else ,though in case typo using capital "c" instead of small "c" .but in case using correct still got error .why ??
here code in got error :
roulette_vector <- c("losses" = 24, "losses" = 50, "winnings" = 100, "losses" = 350, "winnings" = 10)
i not error. however, can try create vector , assign names , check if still error.
roulette_vector <- c(24, 50, 100, 350, 10) names(roulette_vector) <- c("losses", "losses", "winnings", "losses", "winnings")
Comments
Post a Comment