| Type: | Package | 
| Title: | Learning R with Dr. Hu | 
| Version: | 1.1.0 | 
| Maintainer: | Yue Hu <yuehu@tsinghua.edu.cn> | 
| Description: | Tutarials of R learning easily and happily. | 
| License: | MIT + file LICENSE | 
| VignetteBuilder: | knitr | 
| Encoding: | UTF-8 | 
| BugReports: | https://github.com/sammo3182/drhur/issues | 
| LazyData: | true | 
| Depends: | R(≥ 3.6.0), learnr(≥ 0.10.1) | 
| RoxygenNote: | 7.2.3 | 
| Suggests: | rmarkdown, scales, modelsummary, knitr, tidyverse | 
| NeedsCompilation: | no | 
| Packaged: | 2023-05-16 14:43:42 UTC; amand | 
| Author: | Yue Hu [aut, cre], Xinyi Ye [ctb, trl], Yufei Sun [ctb] | 
| Repository: | CRAN | 
| Date/Publication: | 2023-05-17 07:10:06 UTC | 
Calling for an Exercise in Dr Hu's R Workshop
Description
The function calls a run_tutorial function to open a learnr project. The project list is continually updated along with the R workshop with Dr. Hu.
Usage
drhur(workshop, lang = "cn")
Arguments
| workshop | A character vector indicating the name of the workshop to open. See details for the workshop list. | 
| lang | A character vector indicating the display language. The current version includes workshops in English ( | 
Details
The list of workshop available for the current version:
-  calculate: Doing basic maths with R syntax.
-  play: Basic data structure in R; inputting, outputting, and creating data.
-  wrangle: Generalizing (such as sorting and summarizing) and extracting (selecting or adjusting certain columns or rows) data frames.
-  describe: Skills to describe variable and data.
-  visualize: Describing variables, exploring patterns, and presenting estimates with visualization tools.
A Random Sample of World Value Survey (Wave 7).
Description
A dataset randomly sampled from the 7th wave of World Value Survey released in 2022.
Usage
wvs7
Format
A data frame with 1330 rows and 24 variables:
- country
- The country the interview was made. 
- female
- Respondent’s sex is female. 
- age
- Respondent's age. 
- education
- The highest education that the respondent had attained. 
- religious
- Independently of whether the respondent attend religious services or not, did the respondent identify him/herself as a religious person, not a religious person, or an atheist? 
- marital
- Marital status of the respondent. 
- incomeLevel
- The income group the respondent believes his/her household belonged. 
- equalIncentive
- Respondent's view between "Incomes should be made more equal" and "There should be greater incentives for individual effort". 
- equalFreedom
- Most people consider both freedom and equality to be important, but if one had to choose between them, which one would the respondent consider more important? 
- corruption_state
- How many state authorities did the respondent believe were involved in corruption. 
- corruption_local
- How many local authorities did the respondent believe were involved in corruption. 
- corruption_civil
- How many civil service providers did the respondent believe were involved in corruption. 
- trust_family
- Respondent's trust of his/her family. 
- trust_neighbor
- Respondent's trust of his/her neighborhood. 
- trust_stranger
- Respondent's trust of people s/he meet for the first time. 
- trust_foreigner
- Respondent's trust of people of another nationality. 
- confidence_armedForce
- Respondent's confidence in the armed forces. 
- confidence_policy
- Respondent's confidence in the armed forces. 
- confidence_court
- Respondent's confidence in the courts. 
- confidence_gov
- Respondent's confidence in the government. 
- confidence_parliament
- Respondent's confidence in the paliament. 
- confidence_civil
- Respondent's confidence in the civil service. 
- confidence_parties
- Respondent's confidence in the political parties. 
- confidence_tv
- Respondent's confidence in the television. 
Source
https://www.worldvaluessurvey.org/WVSDocumentationWV7.jsp
References
Haerpfer, C., Inglehart, R., Moreno, A., Welzel, C., Kizilova, K., Diez-Medrano J., M. Lagos, P. Norris, E. Ponarin & B. Puranen et al. (eds.). 2020. World Values Survey: Round Seven – Country-Pooled Datafile. Madrid, Spain & Vienna, Austria: JD Systems Institute & WVSA Secretariat. doi.org/10.14281/18241.1