{"id":15760464,"url":"https://github.com/petulla/readroper","last_synced_at":"2025-03-31T09:18:50.119Z","repository":{"id":147695585,"uuid":"123062900","full_name":"petulla/readroper","owner":"petulla","description":"Read single and multi-card ASCII polling datasets in R","archived":false,"fork":false,"pushed_at":"2020-04-14T23:55:21.000Z","size":34,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T13:47:25.430Z","etag":null,"topics":["ascii","data-analysis","polling-data","r"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petulla.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-27T02:47:50.000Z","updated_at":"2020-04-22T18:13:54.000Z","dependencies_parsed_at":"2023-06-27T16:33:54.956Z","dependency_job_id":null,"html_url":"https://github.com/petulla/readroper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petulla%2Freadroper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petulla%2Freadroper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petulla%2Freadroper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petulla%2Freadroper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petulla","download_url":"https://codeload.github.com/petulla/readroper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246443534,"owners_count":20778252,"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":["ascii","data-analysis","polling-data","r"],"created_at":"2024-10-04T10:58:14.258Z","updated_at":"2025-03-31T09:18:50.100Z","avatar_url":"https://github.com/petulla.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n# readroper\n[![Build Status](https://travis-ci.org/petulla/readroper.svg?branch=master)](https://travis-ci.org/petulla/readroper)\n\nUse this package to read ASCII fixed-width data files from the Roper Center and other polling providers into R.\n\n## Installation\n\nYou can install the released version of readroper from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\n  install.packages(\"readroper\")\n```\n\nThe development version from [GitHub](https://github.com/) is installed with:\n\n``` r\n  # install.packages(\"devtools\")\n  devtools::install_github(\"petulla/readroper\")\n```\n## Usage\n\nTo read three questions from a multicard ASCII polling file and weights and output a csv file, you'll want something like:\n\n```r\n  weights df \u003c- read_rpr(col_positions=c(1),\n               widths=c(3),\n               col_names=c('Weights'),\n               filepath='data.txt')\n   card2 \u003c- read_rpr(col_positions=c(1,2,4), \n               widths=c(1,2,1), \n               col_names=c('Q1','Q2','Q3'), \n               filepath='data.txt', \n               card_read=1, \n               cards=2)\n   GALLUP \u003c- cbind(weights,card2)\n   GALLUP$Weights = as.numeric(GALLUP$Weights)/100\n   write.csv(GALLUP,file='cnngallup.csv', row.names=FALSE)\n```\n\nFor instructions on use see the [vignette](https://github.com/petulla/readroper/tree/master/vignettes).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetulla%2Freadroper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetulla%2Freadroper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetulla%2Freadroper/lists"}