-1

I have two tables that must be updated one in the other

Balance table: enter image description here

Transaction table: enter image description here

Desired results: enter image description here

enter image description here

I'm trying to use a loop in R.

Mark
  • 7,785
  • 2
  • 14
  • 34
  • 1
    Bem vinda! How your start here is provide data. You have images above that you want to make useful and images are not, so, using `dput(head(my_data_1, n = 10))`, in R will return a `structure(...}`. You copy the `structure(,,,)` and replace image_1 with my_data_1. It looks wrong. If you put ``` (three back ticks) above and below my_data_1, it will look right. Do that for all your images. Show us your loop, again between 3 backticks above and below, and we'll help balance the checkbook with transaction hashes. – Chris Aug 17 '23 at 22:09
  • 2
    Welcome to SO, viniciuscaldeira! Questions on SO (especially in R) do much better if they are reproducible and self-contained. By that I mean including attempted code (please be explicit about non-base packages), sample representative data (perhaps via `dput(head(x))` or building data programmatically (e.g., `data.frame(...)`), possibly stochastically), perhaps actual output (with verbatim errors/warnings) versus intended output. Refs: https://stackoverflow.com/q/5963269, [mcve], and https://stackoverflow.com/tags/r/info. – r2evans Aug 18 '23 at 00:52
  • 1
    [Please do not upload images of code/data/errors.](//meta.stackoverflow.com/q/285551) – Mark Aug 18 '23 at 01:39
  • use dput() to get the data and copy paste it *into your question* – Mark Aug 18 '23 at 01:41

0 Answers0