{"id":14068210,"url":"https://github.com/Psingh12354/R-Program","last_synced_at":"2025-07-30T02:33:35.917Z","repository":{"id":185587986,"uuid":"288904523","full_name":"Psingh12354/R-Program","owner":"Psingh12354","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-08T08:29:34.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T02:46:17.263Z","etag":null,"topics":["basic-programming","coding","r","r-beginners","r-practice","r-programming"],"latest_commit_sha":null,"homepage":"https://psingh12354.github.io/R-Program/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Psingh12354.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-08-20T04:17:06.000Z","updated_at":"2020-11-08T08:29:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"d92e5828-2d02-48e4-b345-5ac026ce836e","html_url":"https://github.com/Psingh12354/R-Program","commit_stats":null,"previous_names":["psingh12354/r-program"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psingh12354%2FR-Program","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psingh12354%2FR-Program/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psingh12354%2FR-Program/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psingh12354%2FR-Program/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Psingh12354","download_url":"https://codeload.github.com/Psingh12354/R-Program/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228075800,"owners_count":17865553,"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","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":["basic-programming","coding","r","r-beginners","r-practice","r-programming"],"created_at":"2024-08-13T07:06:01.617Z","updated_at":"2024-12-04T08:31:48.196Z","avatar_url":"https://github.com/Psingh12354.png","language":"R","readme":"\u003ch1 align=center\u003e\u003cb\u003eR-Programs\u003c/b\u003e\u003c/h1\u003e\n\u003cp\u003e\u003cb\u003e\u003ci\u003eHere i upload my R program which i have done on my practice session\u003c/i\u003e\u003c/b\u003e\u003c/p\u003e\n\u003ch3\u003e\u003cb\u003eCodes :\u003c/b\u003e\u003c/h3\u003e \n\n```\n# odd\n\nx\u003c-seq(1,100,by=2)\nprint(x)\n\n#array 3*3\n\narr1\u003c-array(c(1:20),dim=c(3,3,2))\nprint(arr1)\n\n# 3d array by dim\n\narr2\u003c-array(1:24,dim=c(3,3))\nprint(arr2)\n\n# vector on length 4\n\na\u003c-c('red','blue','green')\nprint(a)\nprint(class(a))\nprint(a[1])\n\n# vector with 10th element\n\na\u003c-c(1,2,3,4,5,6,7,8,9,10)\nprint(a[1])\nprint(a[3])\nprint(a[8])\n\n# [1] list\n\nlist1=list(2,3,4,5,6,7)\nnames(list1)\u003c-c(\"a\",\"b\",\"c\",\"d\",\"e\",\"f\")\nprint(list1)\n\n# [2] Matrices\n\nrnames\u003c-c(\"a\",\"b\",\"c\",\"d\")\ncnames\u003c-c(\"x\",\"y\",\"z\",\"w\")\nm\u003c-matrix(c(1:20),nrow=4,ncol=4,byrow=TRUE,dimnames=list(rnames,cnames))\nprint(m)\n\n# [3] Arrays\n\nrnames\u003c-c(\"a\",\"b\",\"c\")\ncnames\u003c-c(\"x\",\"y\",\"z\")\narr1\u003c-array(c(2:20),dim = c(3,3),dimnames = list(rnames,cnames))\nprint(arr1)\n```\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPsingh12354%2FR-Program","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPsingh12354%2FR-Program","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPsingh12354%2FR-Program/lists"}