This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 | |
| Take a look at the 'iris' dataset that comes with R. The data can be loaded with the code: | |
| library(datasets) | |
| data(iris) | |
| A description of the dataset can be found by running | |
| ?iris |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 | |
| Take a look at the 'iris' dataset that comes with R. The data can be loaded with the code: | |
| library(datasets) | |
| data(iris) | |
| A description of the dataset can be found by running | |
| ?iris |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 | |
| Take a look at the 'iris' dataset that comes with R. The data can be loaded with the code: | |
| library(datasets) | |
| data(iris) | |
| A description of the dataset can be found by running | |
| ?iris |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Write a function that reads a directory full of files and reports the number of completely observed cases in each data file. | |
| ## The function should return a data frame where the first column is the name of the file and the second column is the number | |
| ## of complete cases. A prototype of this function follows | |
| complete <- function(directory, id = 1:332) { | |
| ## 'directory' is a character vector of length 1 indicating | |
| ## the location of the CSV files | |
| ## 'id' is an integer vector indicating the monitor ID numbers | |
| ## to be used | |
| ## Return a data frame of the form: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| best <- function(state, outcome) { | |
| ## Read outcome data | |
| ## Check that state and outcome are valid | |
| ## Return hospital name in that state with lowest 30-day death | |
| ## rate | |
| source("sortHospitalsByOutcome.R") | |
| head(sortHospitalsByOutcome(state, outcome), 1) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 | |
| The R language is a dialect of which of the following programming languages? | |
| S | |
| 2 | |
| The definition of free software consists of four freedoms (freedoms 0 through 3). Which of the following is NOT one of the freedoms that are part of the definition? | |
| The freedom to prevent users from using the software for undesirable purposes. | |
| 3 | |
| In R the following are all atomic data types EXCEPT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*<?php | |
| //*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
| //\u000A\u002F\u002A | |
| class PhpJava { | |
| static function main() { | |
| echo(//\u000A\u002A\u002F | |
| "Hello World!"); | |
| }} | |
| //\u000A\u002F\u002A | |
| PhpJava::main(); |