[R] Is 'temp' a reserved/key word in R?
t@v|b@r @end|ng |rom gm@||@com
Tue Nov 30 15:46:14 CET 2021
In header the row of the sample data file, the column names, "sampdate"
and "param" are separated by a period, not comma. That would cause the
error you're getting.
On 30/11/2021 16:34, Rich Shepard wrote:
> A short data file:
> site_nbr,sampdate.param,quant,unit <<<===
> The import function:
> sal_temp <- read_csv("../data/geochem/sal-temp.csv", col_names = TRUE,
> col_types = list (
> site_nbr = col_character(),
> sampdate = col_date(),
> param = col_character(),
> quant = col_double(),
> unit = col_character()
> The response from R:
> Warning message:
> The following named parsers don't match the column names: sampdate, param
> I searched the web to see if 'temp' is causing the problem and didn't
> an answer; my search term might have been flawed.
> If that string is a problem please suggest an alternative.
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
More information about the R-help