Title: | Learning R with Dr. Hu |
---|---|
Description: | Tutarials of R learning easily and happily. |
Authors: | Yue Hu [aut, cre], Xinyi Ye [ctb, trl], Yufei Sun [ctb] |
Maintainer: | Yue Hu <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.1.0 |
Built: | 2025-01-25 04:04:57 UTC |
Source: | https://github.com/sammo3182/drhur |
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.
drhur(workshop, lang = "cn")
drhur(workshop, lang = "cn")
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 ( |
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 dataset randomly sampled from the 7th wave of World Value Survey released in 2022.
wvs7
wvs7
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.
https://www.worldvaluessurvey.org/WVSDocumentationWV7.jsp
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