IDEMSInternational / R-Instat

A statistics software package powered by R
http://r-instat.org/
GNU General Public License v3.0
38 stars 103 forks source link

Importing of data goes slightly wrong #9089

Open rdstern opened 3 months ago

rdstern commented 3 months ago

@Patowhiz the csv data you supplied has an oddity on importing. I presume this is a reogrid problem? Here it is:

image

In the preview the first variable is lots of zeros. This is the same when imported, but not in the R viewer, where it is a sensible station code, namely 6610499999.
If you make this element ( - which I assume is numeric - at least it doesn't say otherwise - and possibly has an infinite number of zeros? ) into a character type variable, then it is ok - as 6610499999. If you make it numeric again, then it is still fine.

Patowhiz commented 3 months ago

@rdstern your screenshot shows something different. Did you mean the NCEI data?

rdstern commented 3 months ago

@Patowhiz sorry, I captured the wrong figure - corrected now, and it is the NCEI data.

Patowhiz commented 2 months ago

@rdstern I noticed that the class is integer64 instead of numeric when initially imported. I'm not sure if this relates to the problem.

@N-thony who could this be assigned to? I'll then have to share the sample file.