0 0 0 ... $ rSSD : num 0 0.08 0 0 0.08 0 0 0 0 0 ...
*Gesendet: *Mittwoch, 6. November 2024 um 18:28
*Von: *"Bert Gunter"
*An: *"Sibylle Stöckli"
*CC: *r-help@r-project.org
*Betreff: *Re: [R] Using multiple dat files
Not quite sure if I understand you.
list.files() simply ret
On 11/5/24 22:29, Sibylle Stöckli via R-help wrote:
Dear community
To import multiple .dat weather files I am using list.files().
I intend to use the R package “ClimInd” to calculate different agroclimatic
indicators.
Question: Is there another solution to import multiple .dat files so that
...
>> $ Ta: num -2.67 -2.77 -2.23 -2.21 -0.98 0.82 0.49 -1.02 -2.31 -3.36 ...
>> $ Tmin : num -3.5 -3.7 -4.26 -2.87 -2.98 0.3 -0.83 -1.27 -3 -3.82 ...
>> $ Tmax : num -1.13 -0.15 -0.13 -0.45 1 1.87 1.72 -0.35 -0.85 -2.3 ...
>> $ Precip: num 0 0 0 0 0.45 1.81 0.
1.87 1.72 -0.35 -0.85 -2.3 ...
> $ Precip: num 0 0 0 0 0.45 1.81 0.03 0 0 0 ...
> $ rSSD : num 0 0.08 0 0 0.08 0 0 0 0 0 ...
>
>
> *Gesendet: *Mittwoch, 6. November 2024 um 18:28
> *Von: *"Bert Gunter"
> *An: *"Sibylle Stöckli"
> *CC: *r-help@r-
Not quite sure if I understand you.
list.files() simply returns a character vector(not a list). You can simply
use a vector index to select whatever file you wish to read. So if your
desired filename is the 5th element of filelist above, something like
myfile <- read.table(filename[5], ...)
You
Às 06:29 de 06/11/2024, Sibylle Stöckli via R-help escreveu:
Dear community
To import multiple .dat weather files I am using list.files().
I intend to use the R package “ClimInd” to calculate different agroclimatic
indicators.
Question: Is there another solution to import multiple .dat files
6 matches
Mail list logo