Texts: Trying to do Exercise 3 on RStudio. I can't figure out what formulas I should enter to get the answers for the questions under Exercise 3. Please answer quickly. Will give a very good review and thumbs up!!!!! Thank you!
...
RStudio
Go to file/function
Addins
Project: (None)
Homework 1-6.R
wage_data - Environment
History
Connections
Tutorial
Source
Import Dataset 28 MiB
m = RGlobal Environment 299 28,09062 Q eee Dota 301
# (5 points) Use function table to figure out how many cars have 4 cylinders. Oatcors 32 obs. of 11 variables 302
O Spotify_Data 1545 obs. of 19 variables 303
table(mtcarsScyl) 334 11
O wage_data 518 obs. of 11 variables 335
Values 386
### Exercise 3 (20 points) nun_observations 32L var3 9 388
# Return to the wage_data dataset. Use help to read about filter function 309
# in package dplyr, Focus on the examples at the bottom. 310 ?filter 311 312
# (1 point) Use filter function to filter wage dataset by non-white respondents. Fites Plots Packages Help Viewer Presentation 313 314 315
# (5 points) How many observations are there for the non-white respondents? 316
E How much does the third respondent make? What gender are they? 317
Note 318
# (5 points) How many respondents are female? Use pipe and group_by or count 319
# functions. onvovetype 1teruses the FFT for computations and so may be faster for long filters FINALLY HOMEWORK 1 RScript on univariate series, but it does not return a time series (and so the time alignment is unclear), nor does it handle missing values. 1tex is faster for a filter of length 100 on a series of length 1000, for example. Console Terminal -- R4.3.1~/Downloads/ See Also > filter(wages, roce != "White) convolve, arima.sim Error: object wages not found > filter(wage_data, race != White) Examples Error: object "race' not found >filterwoge_dotanonnhite !"White) Bun examolen Error: object nonnhite not found > filter(wage_data, - "White*) x <- 1:100 Error: unexpected '-' in "filter(wage_data, = filter(x, rep(l,3)) > filter(wage_dota, nonwhite-l) filterx, rep1,3,sides -1) Error in filter(woge_data, nonwhite = 1) : unused argunent (nonnhite = 1) filter(x, rep(1, 3), sides = 1, circular = TRUE) > filter(wage_data, nonwhite =- 1) Error: object 'nonnhite' not found > filter(wage_dota, nonnhite -- "Nonahite) filter(prosidonts, rep(l, 3)) Error object nonnhite not found > [Package stats version 4.3.1 Inciox]
...
17
RStudio File Edit Code View Plots SessionBuildDebug ProfileTools Window Help zoom CTue Oct 17 8:38 PM ... RStudio Go to file/function Addins Project: (None) OHomework 1-6.R wage_data Environment History Connections Tutorial Filter a mport Dataset22 MiB List.. wage educ exper nonwhite married dopunu south wes services Bdpedr RGlobal Environment 3.10 11 2 0 white single 2 nonsouth nonservices Data 3.24 12 22 2 white married 3nonsouth serivces female O mtcars 32 obs.of 11 variables 3 3.00 11 2 0 white 2nonsouth west nonservices male O Spotify_Data single 1545 obs. of 19 variables 28white O wage_data 518 obs. of 11 variables 6.00 8 44 married nonsouth west nonsenvices Values 5.30 12 7 2 white pautn nonsouth nonservices male num_observations 32L 5 8.75 16 6 8 white married 0 nonsouth west nonservices male var3 11.25 18 15 7 white single nonsouth nonservices 5.00 12 5 3 white single 0 nonsouth nonservices female 3.60 12 26 4 white single 2 nonsouth west nonservices female 10 18.18 17 22 21 white married 0nonsouth nonservices male Files Plots Packages Help Viewer Presentation 11 6.25 16 8 2 white single 0 nonsouth west nonservices female 12 8.13 13 0 white single nonsouth nonservices R: Linear Filtering on a Time Series Find in Topic 13 8.77 12 15 0 white married nonsouth west nonservices male Note 14 5.50 12 18 3 white single nonsouth west nonservices male 22.20. 1 married onyove,type=1ter*uses theFFT for computations and so may be faster for long filters Showing 1 to 14 of 518 entries, 11 total col handle missing values. 1ex is faster for a fiter of length 100 on a series of length 1000, for example. ConsoleTerminal Background Jobs - R R 4.3.1 - ~/Downloads/ See Also filter(woges,roce !=White) convolve,arima.sim Error: object 'wages' not found > filter(woge_data, roce !- Nhite) Examples Error: object 'race' not found > filter(woge_data, normhite != "White*) Bun examples Error: object 'nonahite' not found > filter(woge_data, - "White) x<-1:100 Error:unexpectedinfilternoge_data filterx,rep1,3) > filter(wage_data, norwhite-1) filterx, rep1,3,sides -l) Error in filter(woge_data,nonnhite = 1: unused argunent nonnhite = 1) filterx,rep1,3, sides - l, circular - TRUE) > filter(woge_data, normhite =s 1) Error: object 'nonahite not found > filter(woge_data, norwhite -- Nonnhite) filter(presidents, rep(l, 3))