Functions to assist in land use regression using aerosol optical depth
allanjust / aodlur Goto Github PK
View Code? Open in Web Editor NEWFunctions to assist in land use regression using aerosol optical depth
License: Other
Functions to assist in land use regression using aerosol optical depth
License: Other
we would like a function with the following features:
input - takes a csv file (or data.frame)
parameters - names for ID field, lat, long fields (default to "lat" and "long"), fields for datestart and dateend, optional parameter for furthest distance (to constrain predictions to points that fall within the model area) - default to 0.05 decimal degrees)
checks - check that there is an ID field (otherwise how can they use this)
check that there are valid lat and long
run geomerge
return a long data.frame with one row per day-location making sure to preserve the ID field
optionally, take a filepath-filename to write.csv the results
report back a warning if everyone is outside of the range of the model (a hint that lat and long are messed up)
if the variable that is the key in joinfrom is not a character we try to make it one and that doesn't work right now.
Because the key values are being stored in rownames (in makepointmatrix, for use in the knn), we are trying to coerce (unsuccessfully) to character
https://github.com/allanjust/aodlur/blob/master/R/nearestbyday.R#L42
Variable should be able to be named anything (currently unstated that it must be "day") - it is just another dimension on which we are requiring a join. Add flexibility:
simplify and then perhaps you won't need to export this as a second function
runs quickly and so it will simplify everything, even if the jointo.pts is sometimes reused
for a neighborhood variable that doesn't use the value closest to the site
keep the same parameter conventions if possible
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.