Skip to content
Prev 389026 / 398506 Next

read.csv() error

On Thu, 02 Sep 2021, Rich Shepard writes:
(Sorry, sent too early.)

There is no column 'ht'.

    df <- data.frame(a = 1:5)
    df$b <- as.numeric(df$b)
    ## Error in `$<-.data.frame`(`*tmp*`, b, value = numeric(0)) : 
    ##   replacement has 0 rows, data has 5
Message-ID: <87lf4ezzua.fsf@enricoschumann.net>
In-Reply-To: <alpine.LNX.2.20.2109020931350.18288@salmo.appl-ecosys.com> (Rich Shepard's message of "Thu, 2 Sep 2021 09:32:24 -0700 (PDT)")