faculty_mean: faculty_mean

Description Usage Arguments Value Examples

Description

This is a function for computing the mean value of a faculty over all semesters.

Usage

1
2
3
4
5
faculty_mean(faculty_nr, download, FacData)

   ## Default method:

   faculty_mean(faculty_nr, download=FALSE, FacData=NA)

Arguments

faculty_nr

A numeric value corresponding to a certain faculty. See the function faculty_data to get all faculty numbers.

download

Logical. If TRUE the corresponding data is downloaded and used for computing the faculty mean value. If False the faculty data has to be provided using the function faculty_down in the first place.

FacData

A List containing the faculty data. Typically produced by the function faculty_down.

Value

The Return is an object of class "fac_mean" and contains the mean value of the faculty and the faculty-name.

Examples

1
2
3
4
5
6
# Computing the mean for the economic faculty without providing any data in advance
faculty_mean(12, download = TRUE)

# Downloading the data for economic faculty using the faculty_down-function
economic_data <- faculty_down(12)
faculty_mean(12, download = FALSE, FacData = economic_data)

MartinWut/GoeFlexStatCrawler documentation built on May 17, 2019, 8:20 a.m.