[R] split a factor into single elements

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Thu Mar 28 12:53:35 CET 2024


On 28/03/2024 7:48 a.m., Stefano Sofia wrote:
> as.factor(2024, 12, 1, 0, 0)

That doesn't work.  You need to put the numbers in a single vector as 
Fabio did, or you'll see this:

Error in as.factor(2024, 12, 1, 0, 0) : unused arguments (12, 1, 0, 0)

Duncan Murdoch



More information about the R-help mailing list