R - How do I generate a histogram of this data frame?

I have an object temp whose data looks as follows:

   month mean(dep_delay)    (int)           (dbl) 1      1       10.233333 2      2       10.687227 3      3       13.517602 4      4       14.554477 5      5       13.264800 6      6       20.350293 7      7       20.754559 8      8       12.619097 9      9        6.872436 10    10        5.880374 11    11        6.103183 12    12       17.368189 

I generated this data using dplyr and the object holding this data is defind as follows:

class(temp) [1] "grouped_df" "tbl_df"     "tbl"        "data.frame" 

I'm somewhat new to R and I'd like to generate a histogram of 'temp' so I can see the distribution of the data. However, the statement:

hist(temp) always generates the following error:

Error in hist.default(temp) : 'x' must be numeric 

Replay

Category: r Time: 2016-07-30 Views: 0
Tags:

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.181 (s). 12 q(s)