saving . . . saved doubt in assignment has been deleted. doubt in assignment has been hidden .
doubt in assignment
for the assignment...airquality data set is html file.
how to read it and store in a variable.

R More-Functions-in-dplyr-Package 07-08 min 10-20 sec 02-05-20, 12:58 a.m.


Please note that airquality is a built-in dataset in RStudio. You can simply use this by calling its name as and when needed. For instance, I am trying to plot the two variables of this dataset as given below:

(airquality$Solar.R, airquality$Ozone)
02-05-20, 1:03 a.m. sudhakarst
its still not working
02-05-20, 1:51 a.m.
Please see whether you are able to view the data by executing View(airquality)
02-05-20, 1:59 a.m. sudhakarst
No. HTML file is displayed
02-05-20, 11:38 a.m.
I am assuming that you have installed R and RStudio on your machine. Then, you are trying to load the data in RStudio. 
02-05-20, 12:26 p.m. sudhakarst

# use Built In data set airquality. Using select function,
#select the variables Ozone, Wind, Temp in this dataset.
<font size="2">View(airquality)</font>
<font size="2">
<font size="4">airqualitySOW <- select(airquality$Ozone, airquality$Wind, airquality$Temp)</font>
<font size="4">View(airqualitySOW)</font>
<font size="4">
mtcars <- read.csv("mtcars.csv")
mtcarsR <- rename( mtcars, MilePerGallon = "mpg" ,
                 Cylinder = "cyl")

for the bold text in above I get output as

> airqualitySOW <- select(airquality$Ozone, airquality$Wind, airquality$Temp)
Error in UseMethod("select_") : 
  no applicable method for 'select_' applied to an object of class "c('integer', 'numeric')"
> View(airqualitySOW)

02-05-20, 2:43 p.m.
airqualitySOW <- select(airquality,c(Ozone, Wind, Temp))
tried this and got output.
02-05-20, 2:47 p.m.

Login to add comment

Log-in to answer to this question.