STAT 385 - Project PolicyR

Java Python STAT 385

Project Policy

Deadline

Final projects will be due on Thursday, December 19 at 11:59 PM, Champaign time.

Submission

Submit a single .zip file named your-app-name.zip where your-app-name is whatever you name your app. This .zip file should contain an RStudio Project in a folder named your-app-name . This folder should contain the following, which will be described in this document:

your-app-name.Rproj - a required RStudio project file.

app.R - a required file that defines the Shiny application.

about.Rmd - a required file containing information describing the application.

R/ - a required directory that contains .R files that contain additional functions.

data/ - an (optional) directory that contains .csv or other files necessary to import data.

Submit your project to the relevant assignment on Canvas.

Data

For this project, you can use (almost) any data!

The following are some potential data sources:

Tidy Tuesday - Datasets curated by the R community for weekly wrangling, visualization, and analysis practice.

wadefagenʼs Useful Datasets - A number of “useful” datasets, especially related to UIUC.

You may not use the gpa dataset as it is used in tutorials for Shiny in STAT 385.

Illinois Shield Testing Data - Data on Illinoisʼ COVID testing. Data is available through a link to Box at the bottom of the page.

This data may no longer be used as it has been used in many previous projects from past semesters.

Open-Meteo - Freely available weather data.

OPEN Powerlifting - Data on results from powerlifting meets. CSV files can be obtained on the Data page. As the data is extremely large, consider pre-processing.

nflfastR - A package to efficiently scrape NFL play-by-play data. See related packages as well.

ffverse - A collection of fantasy football R packages.

baseballr - A package for scraping various baseball data from websites such as FanGraphs.com, Baseball-Reference.com, and baseballsavant.com.

538 Data - Data used in 538 articles.

Kaggle Datasets - Data from the ML practice platform. Kaggle. Be aware of the licences of the various dataset. (And try to consider data that can most readily be legally shared.)

sportsdataverse - Collect of packages for obtaining sports data in R.

cfbfastR - An R package for working with CFB data

CDC Data - Catalog of CDC data, which currently is heavily populated with COVID data.

We recommend that you attempt to find a dataset ASAP and verify that you can load it into R and perform. basic data manipulations.

Requirements

In short, you must create a Shiny application with at minimum three inputs and two outputs. The files and how to submit them are described above. The grading details below indicate additional details about the application and the necessary files.

Shiny App Tutorial

The following documents will describe background needed to understand the video walk-through of developing an MLB Spin Rate Application. The background for this lab was given as part of a lab in the Fall 2021 semester.

Fall 2021 Lab 10 Assignment

Fall 2021 Lab 10 Solution

YouTube: Fall 2021 Lab 10 Video Walk-Through /// ClassTranscribe Mirror

Yes, this is a lot of background information, but it will be very useful for understand the video about the application STAT 385 - Project PolicyR development.

The following video will detail the development of an application with the data described above. It will start from describing the idea for the application, and illustrate the entire development process:

YouTube: Shiny App Tutorial: Spin Rate App /// ClassTranscribe Mirror

Final Project Tutorial

The following video will demonstrate developing an application from scratch, that meets all of the specifications of the final project. The video begins by sketching an idea for an application, and ends with grading the finished project against the rubric found below.

YouTube: GPA Shiny Application /// ClassTranscribe Mirror

Grading

Your project will be graded based on the following criteria. As each criteria is very specific, partial credit will only be used in very rare situations. (Assume no partial credit is possible.) Note that we are not grading on quality or creativity of analysis, only functionality and correctness of the application. (However, you should still work towards these things!) The total points available for the project is the sum of the points listed.

[4] After unzipping submission, all required files exist.

[5] After opening app.R , the applications runs without error using the “Run App” feature inside RStudio.

[1] Data used by the application should either be loaded directly from the web, or stored in the data/ directory and loaded accordingly. (We strongly recommend the latter so that your application will not break if a link becomes broken later.)

[1] The UI is well organized. Hint: leverage sidebarLayout() , fluidRow() , or other UI layout features documented on the R Shiny cheat sheet.

[1] The UI contains a navigation bar with at least two tabs.

[3] The application contains three input elements.

[1] Of the minimum three input elements, two must be unique.

[1] Of the minimum three input elements, the choices of one of the inputs must be conditionally dependent on another input.

[2] The application contains at least two output elements, one graphical and one tabular.

[1] The graphical output element is created using ggplot2 .

[1] The graphical output element reacts to at least one of the input elements.

[1] The application uses at least one reactive element that is user defined using reactive() .

[1] The application performs some data manipulation using dplyr .

[1] The tabular output element reacts to at least one of the input elements.

[1] The R/ directory should contain at least one .R file which contains at least one function.

[1] The function described above is used in the application.

[1] One of the tabs in the navigation bar links to the rendered output from about.Rmd .

[1] The about page has four sections: Author, Purpose, Data, and References.

[1] The author section of the about page should contain the name and email of the author, as a bulleted list.

[1] The purpose section of the about page should contain a very brief (think one paragraph) description of what the application is meant to do and what it could be used for.

[1] The data section of the about page should describe the source of the data. It should also describe the data in enough detail such that a user of the application understands the data enough to use the application.

[1] The references section of the about page should contain a list of references used, which at minimum includes the source of the data.

[3] When using the application, no errors or crashes occur         

<think>嗯,用户询问的是"crsctl stat res -t -init"命令的详细解释,看来是在处理Oracle集群问题时遇到了困惑。从引用内容看,用户应该是个DBA或在管理Oracle Grid Infrastructure环境。用户的需求很明确,就是想知道这个命令的具体作用、使用场景和输出含义。 从引用材料来看,我需要重点解释几个关键点:首先这个-init选项在11.2.0.2之后才变得重要,因为基础资源状态被移到了init层级。用户提供的引用4特别有价值,它给出了完整的输出示例和STATE_DETAILS字段解释,比如那个"Started,STOPPING"的状态说明很关键。引用2也证实了显示基础资源状态需要这个选项。 用户可能实际遇到了crsd停止的问题(引用1提到ora.crsd卡在stopping状态),所以才会这么关注这个命令。不过当前问题聚焦在命令本身,我应该先解释清楚命令功能。需要特别注意STATE_DETAILS字段的解读,引用4的示例显示它能反映资源过渡状态,这对故障诊断很重要。 考虑在回答中结构化地解释命令用途、适用场景、输出含义三部分。特别注意要区分普通"crsctl stat res -t"和带-init选项的区别,引用2和4正好能说明这点。对于输出字段,用户提供的示例已经包含了NAME/TARGET/STATE/SERVER/STATE_DETAILS这些关键列,尤其是STATE_DETAILS里"STOPPING"这样的动态状态需要重点说明。 噢,用户给的引用3还展示了如何用这个命令停止init资源,虽然不在当前问题范围内,但说明这个命令还能用于管理操作。不过当前用户只问查看功能,这部分可以不展开。最后考虑建议用户结合crsctl check crs等命令做整体健康检查,毕竟单独看资源状态可能不够全面。 </think>以下是对 `crsctl stat res -t -init` 命令的详细解析,整合了引用中的关键信息: ### **一、命令作用** 1. **显示初始化资源状态** 该命令专门用于查看 Oracle Grid Infrastructure 中的 **基础守护进程资源**(如 `ora.cssd`, `ora.ctssd`, `ora.diskmon`, `ora.crsd` 等),这些资源在普通 `crsctl stat res -t` 命令中默认隐藏(11.2.0.2 及以上版本)[^2][^4]。 2. **诊断集群初始化问题** 当集群核心服务(如 CRSD)异常时,普通命令可能无法返回有效信息,此时需用 `-init` 选项检查底层资源状态(例如 `ora.crsd` 卡在 `STOPPING`)[^1][^4]。 --- ### **二、使用场景** 1. **排查 CRSD 故障** - 若 `crsctl stat res -t` 无输出或报错,但 `crsctl stat res -t -init` 显示 `ora.crsd` 状态异常(如 `STOPPING`),表明 CRSD 进程未正常启动[^1]。 - **解决方法**:终止关联代理进程(如 `orarootagent`)并重启集群(`crsctl stop crs` → `crsctl start crs`)[^1]。 2. **监控基础资源** 需检查集群核心组件的实时状态时(如 ASM 实例、CSSD 守护进程),必须添加 `-init` 参数[^2][^4]。 3. **管理初始化资源** 可配合 `crsctl stop/res start res <resource> -init` 启停特定基础资源(如 `ora.crf`)[^3]。 --- ### **三、输出字段详解** 示例输出及关键列解析[^4]: ```bash NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- ora.asm ONLINE ONLINE leihost2 Started,STOPPING ora.cluster_interconnect.haip ONLINE ONLINE leihost2 ora.crf ONLINE OFFLINE ora.crsd ONLINE OFFLINE ora.cssd ONLINE ONLINE leihost2 ``` | **字段** | **含义** | |------------------|--------------------------------------------------------------------------| | `NAME` | 资源名称(`ora.` 开头的是核心组件) | | `TARGET` | 预期目标状态(通常应为 `ONLINE`) | | `STATE` | 当前实际状态(`ONLINE`/`OFFLINE`/`UNKNOWN`) | | `SERVER` | 资源所在节点(若为 `OFFLINE` 则可能为空) | | **`STATE_DETAILS`** | **关键诊断信息**(如 `Started,STOPPING` 表示资源正在停止中)[^4] | > ⚠️ **重要状态解读** > - `STOPPING`:资源正在停止(可能因超时卡住,需人工干预)[^4] > - `OFFLINE`:资源未运行(检查依赖或日志) > - 空值:资源未分配到节点或状态同步失败 --- ### **四、相关命令对比** | **命令** | **显示范围** | **适用场景** | |----------------------------|-----------------------------|----------------------------------| | `crsctl stat res -t` | 应用级资源(数据库/服务) | 日常运维监控 | | `crsctl stat res -t -init` | 基础守护进程资源 | 集群启动故障、核心组件状态诊断 | ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值