پارس‌کدرز چگونه کار می‌کند؟

از پارس‌کدرز بیشترین بهره را ببرید و رویای کاری خود را زندگی کنید.

پارس‌کدرز خریداران یا کارفرمایان را به مجری‌ها /فریلنسرهای خبره‌ای متصل می‌کند که برای انجام پروژه آماده هستند.

29006 - پروژه R..

ده ماه پیش منتشر شده

تعداد بازدید: 101

کد پروژه: 450690


شرح پروژه

- فوق لیسانس Public health and data science برای تمرین درسی

- نرم افزار r studio

- بتونیم چند جلسه توضیح هم به ما بده بصورت پرسش و پاسخ

Assessment 1: Data analysis (R programming)

General Instructions:

You should use R programming to solve this assignment. The submission should take the form of a single word file including accompanying narrative explanations. Don't forget to number your solutions [e.g. - Ans. 1a, Ans. 1b, Ans. 2a, etc.].

Read each question carefully for a clear understanding of what it demands.

You can use functions that are available as part of the R base package.

You should not use any external library and its functions, unless has been explicitly asked for a particular question.

Refrain from using any AI Generative application (for example: ChatGPT, RTutor, RCodePal, AskCody, etc.) to solve any part of this coursework. In case a solution is found to have been generated by an AI application, you would be reported for academic misconduct.

Assignment and associated datasets are available as downloadable links on the Health Data Science Blackboard site -> Assessment -> Assessment1-CourseworkAssignment.

Refer to the general assignment preparation and submission guidelines: Blackboard site -> Assessment -> HDS-Assessment1_Guidelines.pdf.

Submission Deadline: 20th November 2023, 13:00 hrs (GMT).

Good luck and all the best.

Q.1) When the given code snippet(s) are executed in R, will the given variable object(s) store the assigned values? If not, provide the amended code, with the new output and an explanation of your changes. [3*4 = 12 pts.]

var_raq = chartoRaw("Welcome")

.1a <- "Welcome to R programming."

Var-z <- as.numeric(TRUE, FALSE, 56, "TRUE", "TRUE", TRUE, 88, 567.5)

var.12a <- matrix((cbind(1:5), c(1, 1, 5))

NOTE: Include comments in your program. You should not use any external R packages (libraries).

Q.2) In the given code, a user enters the following values: var1 = 250, var2 = 35, var3 = 180, expecting the return value to be 286. However, it returns a value of 501. Modify this code so that it returns the value as expected by the user. Explain your changes. [8 pts.]

var1 <- as.integer(readline("Enter a value:"))

var2 <- as.integer(readline("Enter a value:"))

var3 <- as.integer(readline("Enter a value:"))

func.1 <- function(var1) {

func.2 <- function(var2) {

var2 + var3

}

var3 = 1

var1 + func.2(var1)

}

func.1(var1)

NOTE: Include comments in your program. You should not use any external R packages (libraries).

Q.3) Write a program in R (for each sub-part) to explain the usage of following functions in R Programming: [4*5 = 20 pts]

numeric()

sapply()

factor()

cbind()

write.table()

NOTE: Include comments in your program. You should not use any external R packages (libraries).

Q.4) You are part of a Data Science team in a Marine Analytics Organisation. As a consultant, you are helping a client company (works in marine conservation and are presently focusing on Abalones) to analyse an Abalone dataset to gain new insights.

[Information: Abalone are marine snails, considered as white gold. They are in high demand in the Asian food markets, with a plate of it costing ~ £400-500. This is a leading cause of its poaching in Africa and various other countries. You may read more about it here and here.]

Write a program which helps in the following tasks:

[2 + 4 + 4 + 4 + 4 + 2 = 20 pts]

Allow the user to import the dataset and add the column (attributes/feature) names.

Allow the user to group the data based on gender and give the count of male and female Abalones. Give the data summary of continuous attributes for the two groups.

Allow the user to calculate the Age for each Abalone and store these values in a new column.

Allow the user to discover whether the average age for male Abalone’s is greater than female Abalone’s or not.

Allow the user to discover all the Abalone’s for whom, the sum of Shucked weight, Viscera weight and Shell weight is less than the Whole weight of Abalone.

Allow the user to find out all the Abalone’s whose Diameter is greater than 0.500mm and Height is less than 0.200mm.

NOTE: Use the Abalone dataset from the UCI repository (https://archive.ics.uci.edu/ml/datasets/Abalone). Include comments in your program. If required, you may use external R packages (libraries).

Q.5) Write a function-based program in R, having an outer function with three arguments x, y and z. Create an inner function within the outer function, which has an argument with a constant value (3.56). The inner function should calculate product of arguments x and y, and sum the result with this constant value. The outer function should check whether the result of inner function is a prime number. If “TRUE” should multiply the result with argument z and return this value, else should return the result as derived from the inner function. [20 pts.]

NOTE: Include comments in your program. You should not use any external R packages (libraries).

Q.6) Being a part of a Data Science team in a Health Analytics Organisation, you have been assigned the following tasks:

Develop a R program which read two datasets (Q6-File1.csv and Q6-File2.csv): the first file includes clinical data, while the second file contains protein expression data. For each dataset, the program should do the following: [2*3 = 6 pts.]

provide the number of dimensions, summarising the number of patients and the names of variables for any chosen dataset.

generate box plots for user-specified continuous variable(s).

Develop a R program, which matches the patient-ids from the first dataset with the reference-ids from the second dataset (reference id in the second file is combination of patient id with sample number). For each patient, calculate the arithmetic mean of expression values for each protein.

user specified threshold value, highlight patients whose mean protein expression values are above this threshold. [14 pts.]

NOTE: Include comments in your program. You should not use any external R packages (libraries).

مهارت ها و تخصص های مورد نیاز


بودجه

750,000 تومان تا 5,000,000 تومان

مهلت برای انجام

7روز

وضعیت مناقصه

بسته


درباره کارفرما

عضویت هفت سال پیش

11762 پروژه ثبت شده ،
32 پروژه در حال انجام ،
83 پروژه آماده دریافت پیشنهاد ،
نرخ پذیرش پیشنهاد 34%

برای پیدا کردن پروژه‌های مشابه ثبت نام کنید و پروفایل خود را بسازید.

ورود با گوگل
یا
نام نباید خالی باشد.
نام خانوادگی نباید خالی باشد.

نیاز به استخدام فریلنسر یا سفارش پروژه مشابه دارید؟

سفارش پروژه مشابه

قادر به انجام این پروژه هستید؟

ثبت نام کنید

مهلت ارسال پیشنهاد قیمت برای این پروژه تمام شده است

سری به پروژه‌های مشابه بزنید

روش کار در پارس‌کدرز

به رایگان یک حساب کاربری بسازید

مهارت‌ها و تخصص‌های خود را ثبت کنید، رزومه و نمونه‌کارهای خود را نشان دهید و سوابق کاری خود را شرح دهید.

به شیوه‌ای که دوست دارید کار کنید

برای پروژه‌های دلخواه در زمان دلخواه پیشنهاد قیمت خود را ثبت کنید و به فرصت‌های شغلی منحصر به فرد دسترسی پیدا کنید.

با اطمینان دستمزد دریافت کنید

از زمان شروع کار تا انتهای کار به امنیت مالی شما کمک خواهیم کرد. وجه پروژه را از ابتدای کار به امانت در سایت نگه خواهیم داشت تا تضمین شودکه بعد از تحویل کار دستمزد شما پرداخت خواهد شد.

می‌خواهید شروع به کار کنید؟

یک حساب کاربری بسازید


بهترین مشاغل فریلنسری را پیدا کنید
رشد شغلی شما به راحتی ایجاد یک حساب کاربری رایگان و یافتن کار (پروژه) متناسب با مهارت‌های شما است.

پیدا کردن کار (پروژه)

تماشای دمو روش کار