{"id":31714996,"url":"https://github.com/chmodshubham/r-programming-practicals","last_synced_at":"2025-10-09T01:50:49.471Z","repository":{"id":191780908,"uuid":"637169470","full_name":"chmodshubham/R-Programming-Practicals","owner":"chmodshubham","description":"College Programming with R Practicals","archived":false,"fork":false,"pushed_at":"2023-05-06T18:11:56.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-16T04:13:15.096Z","etag":null,"topics":["college","practicals","r"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chmodshubham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-05-06T18:10:27.000Z","updated_at":"2023-05-06T18:13:33.000Z","dependencies_parsed_at":"2023-08-31T18:08:42.319Z","dependency_job_id":null,"html_url":"https://github.com/chmodshubham/R-Programming-Practicals","commit_stats":null,"previous_names":["chmodshubham/r-programming-practicals"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chmodshubham/R-Programming-Practicals","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2FR-Programming-Practicals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2FR-Programming-Practicals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2FR-Programming-Practicals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2FR-Programming-Practicals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chmodshubham","download_url":"https://codeload.github.com/chmodshubham/R-Programming-Practicals/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2FR-Programming-Practicals/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000705,"owners_count":26082894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["college","practicals","r"],"created_at":"2025-10-09T01:50:19.555Z","updated_at":"2025-10-09T01:50:49.466Z","avatar_url":"https://github.com/chmodshubham.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Programming in R\n\nQ1. Write an R script to do the following:\n\na) simulate a sample of 100 random data points from a normal distribution with mean 100\nand standard deviation 5 and store the result in a vector.\n\nb) visualize the vector created above using different plots.\n\nc) test the hypothesis that the mean equals 100.\n\nd) use wilcox test to test the hypothesis that mean equals 90.\n\nQ2. Using the Algae data set from package DMwR to complete the following tasks.\n\na) create a graph that you find adequate to show the distribution of the values of algae a6.\n\nb) show the distribution of the values of size 3.\n\nc) check visually if oPO4 follows a normal distribution.\n\nd) produce a graph that allows you to understand how the values of NO3 are distributed\nacross the sizes of river.\n\ne) using a graph check if the distribution of algae a1 varies with the speed of the river.\n\nf) visualize the relationship between the frequencies of algae a1 and a6. Give the\nappropriate graph title, x-axis and y-axis title.\n\nQ3. Read the file Coweeta.CSV and write an R script to do the following:\n\na) count the number of observations per species.\n\nb) take a subset of the data including only those species with at least 10 observations.\n\nc) make a scatter plot of biomass versus height, with the symbol colour varying by species,\nand use filled squares for the symbols. Also add a title to the plot, in italics.\n\nd) log-transform biomass, and redraw the plot.\n\nQ4. The built-in data set mammals contain data on body weight versus brain weight. Write R\ncommands to:\n\na) Find the Pearson and Spearman correlation coefficients. Are they similar?\n\nb) Plot the data using the plot command .\n\nc) Plot the logarithm (log) of each variable and see if that makes a difference.\n\nQ5. In the library MASS is a dataset UScereal which contains information about popular\nbreakfast cereals. Attach the data set and use different kinds of plots to investigate the following\nrelationships:\n\na) relationship between manufacturer and shelf\n\nb) relationship between fat and vitamins\n\nc) relationship between fat and shelf\n\nd) relationship between carbohydrates and sugars\n\ne) relationship between fibre and manufacturer\n\nf) relationship between sodium and sugars\n\nQ6. Write R script to:\n\na) Do two simulations of a binomial number with n = 100 and p = .5. Do you get the same\nresults each time? What is different? What is similar?\n\nb) Do a simulation of the normal two times. Once with n = 10, µ = 10 and σ = 10, the other\nwith n = 10, µ = 100 and σ = 100. How are they different? How are they similar? Are\nboth approximately normal?\n\nQ7. Create a database medicines that contains the details about medicines such as {manufacturer,\ncomposition, price}. Create an interactive application using which the user can find an\nalternative to a given medicine with the same composition.\n\nQ8. Create a database songs that contains the fields {song_name, mood,\nonline_link_play_song}. Create an application where the mood of the user is given as input\nand the list of songs corresponding to that mood appears as the output. The user can listen to\nany song form the list via the online link given.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmodshubham%2Fr-programming-practicals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchmodshubham%2Fr-programming-practicals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmodshubham%2Fr-programming-practicals/lists"}