Simple R code for data manipulation

I need a well-annotated R code to fill in gaps in a dataset, which represents temperature measurements made on the two dimensional grid. Over the course of the measurements some of my sensors died. Due to this I lost data for some time periods and now need to use simple algorithm to approximate these values.

The data is temperature measurements made on a grid of 50 points every three hours over the course of few years.

This is algorithm which should be applied to the data (which exists as a text file):

1. locate point with NA (no data) - walk from point to point (outer cycle), and from month to month (inner cycle)

2. select 5 nearest points to our focal point with missing data

3. for each neighbouring point – select the same month in year-1 or year +1 when both (neighbouring and focal) have data

4. regress data from focal point (for a given month) against data from selected neighbours, keeping regression coefficients and R2

5. select neighbouring point, whose data regresses with the highest R2 against data from the focal point.

6. use that neighbouring point to project upon NA region of the focal point, filling up the data gap

7. if no points are found, select 10 nearest points and repeat # 3

As you see the algorithms involves very straightforward data manipulation. Since my R programming skills are not up to the level which would allow me to do this project quickly, so I need help from a more experienced coder.

Evner: Databehandling, Matematik, Matlab and Mathematica, Statistikker

Se mere: use of algorithms in programming, use of algorithm in programming, text algorithms, straightforward algorithm, simple algorithms in c, r programming course, Programming with R, mathematics for, i need a code for programming, help with algorithms, data sensors, data and algorithms, data algorithms, data algorithm, data 3, code for programming, code algorithms, algorithms for programming, algorithms data, algorithm data

Om arbejdsgiveren:
( 34 bedømmelser ) Rapide-Danseur, Canada

Projekt ID: #5359432

Tildelt til:


Hi, if I understand your project, what you want is to find points which don't have an associated measurement for an specific date (year-month). For this points, what you require is to get its neighbors and get how diff Flere

$80 CAD in 3 dage
(0 bedømmelser)

4 freelancere byder i gennemsnit $148 på dette job


Hello, expert in programming and regression on structured and unstructured meshes of data points. I can help you estimating the missing data from your dataset. Thanks, Paul

$300 CAD in 7 dage
(23 bedømmelser)

Hi killevw. Can i see the data file? In which format is? Is it ok in octave/matlab/python the script? Regards.Greg.

$150 CAD in 7 dage
(9 bedømmelser)

Hi I am currently working in stock market analysis (S&P 500 futures). I am currently using R for analysis. Also proficient in SPSS and SAS. Worked on univariate and multivariate techniques such as T-Test, Chi-Square t Flere

$61 CAD in 3 dage
(1 bedømmelse)

A proposal has not yet been provided

$66 CAD in 3 dage
(0 bedømmelser)