delabj / actmapr Goto Github PK
View Code? Open in Web Editor NEWAn R package that is meant to enable easy translation of the fixed width file provided by the ACT to schools for reporting of scores.
License: MIT License
An R package that is meant to enable easy translation of the fixed width file provided by the ACT to schools for reporting of scores.
License: MIT License
First let me say thanks for sharing this package. It has saved me a ton of time. Second, I would do a pull request to fix this, but I am new to collaborating on github, so trying to learn that. In your ReadACT
function I have found it chokes on some of our ACT files. Adding comment.char=""
to the read.fwf
lines fixes the problem.
Thanks
ReadACT_new <- function (file = "fileName", year = "19-20", blanks = F,
scores_only = T)
{
df <- GetMapping(year)
if (!is.data.frame(df)) {
stop("Given Mapping isn't a dataframe. Have you entered the year correctly?")
}
temp <- read.fwf(file = file, widths = df$widthsACT, col.names = df$namesACT, comment.char="")
if (blanks) {
return(temp)
}
temp <- temp %>% select(-(starts_with("blank")))
if (scores_only) {
temp <- temp %>% select(lastName, firstName, dateOfBirth,
stateID, testDate, composite = scaleComposite, english = scaleEnglish,
mathmatics = scaleMath, reading = scaleReading, science = scaleScience,
`writing subscore` = scoreWR)
}
return(temp)
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.