Hi all, As I am new to using R on a Linux machine I have another question if that's ok. I am trying to use the fix() or edit() function on this Linux machine but I get the following error message: Error in dataentry(datalist, modes) : invalid device In addition: Warning message: In edit.data.frame(get(subx,envir=parent),title = subx, ...) : Unable to create fontset -*-fixed-medium-r-*-*-*-120-*-*-*-*-*-* It seems that I am trying to use an invalid device? Or I don't have the correct fonset? Has anyone else come across the same issue? And if so, how did you manage to resolve it? Any help would be greatly appreciated. Many thanks in advance, Bronagh [[alternative HTML version deleted]]
Hi all, I am currently carrying out the following aggregate function: D2 <- with(D1,aggregate(COST, list(FRUIT, VEG),FUN="sum")) The function is working fine but I am getting "sum" output in the following format: 1.750623e+09 How can I re-format the output to look like 1750622640.7? Many thanks in advance, Bronagh
Try to set scipen in options. ?options e.g. options(scipen=12) Regards Petr r-help-bounces at r-project.org napsal dne 23.04.2009 12:30:11:> Hi all, > > I am currently carrying out the following aggregate function: > > D2 <- with(D1,aggregate(COST, list(FRUIT, VEG),FUN="sum")) > > The function is working fine but I am getting "sum" output in the > following format: > > 1.750623e+09 > > How can I re-format the output to look like 1750622640.7? > > Many thanks in advance, > Bronagh > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.
Thanks a mil, will try that. -----Original Message----- From: Petr PIKAL [mailto:petr.pikal at precheza.cz] Sent: 23 April 2009 12:18 To: Bronagh Grimes Cc: r-help at r-project.org Subject: Odp: [R] Aggregate Function Try to set scipen in options. ?options e.g. options(scipen=12) Regards Petr r-help-bounces at r-project.org napsal dne 23.04.2009 12:30:11:> Hi all, > > I am currently carrying out the following aggregate function: > > D2 <- with(D1,aggregate(COST, list(FRUIT, VEG),FUN="sum")) > > The function is working fine but I am getting "sum" output in the > following format: > > 1.750623e+09 > > How can I re-format the output to look like 1750622640.7? > > Many thanks in advance, > Bronagh > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.