Displaying 20 results from an estimated 1000 matches similar to: "seq() function accuracy inacceptable (PR#8779)"
2006 Apr 18
0
seq() function accuracy inacceptable
> The seq-command produces unnescessary inaccurate results, which can be extremely
> annoying. I absolutely do not see the nescessity of numerical garbage
> to appear in the following simple case. E.g. try this:
> > seq ( 61.55 , 62.00 , by=0.01 ) - round ( seq ( 61.55 , 62.00 , by=0.01 ) ,
> digits=2 )
An even simpler case may help explain why this is not *unnecessary*
2012 Aug 27
2
simplest way (set of functions) to parse a file
Hello,
What would be the best set of R functions to parse and transform a file?
My file looks as shown below. I would like to plot this data and I need to parse it into a single data frame that sorts of "transposes the data" with the following structure:
> df <- data.frame(n=c(1,1,2,2),iter=c(1,2,1,2),step=as.factor(c('Step 1', 'Step2', 'Step 1',
2002 Sep 17
2
Serious, inacceptable artefacts with Ogg Vorbis
Hello developers,
I recently participated in a public listening test that was held by
German magazine c't. They had two categories, 64 kbps and 128 kbps.
I only participated in the 64 kbps test where there were 7 .wav files,
with 1 of them the original one and the other 6 being encoded with
different encoders. Without knowing which file was encoded with which
encoder you had to give each
2010 May 11
1
merging data frame
Dear group,
I have 3 data frames I would like to merge.
Here they are:
pose16 <-
structure(list(DESCRIPTION = structure(c(1L, 2L, 3L, 4L, 5L,
6L, 7L, 8L, 9L, 12L), .Label = c("COPPER May/10", "COTTON NO.2 Jul/10",
"CRUDE OIL miNY May/10", "GOLD Jun/10", "ROBUSTA COFFEE (10) Jul/10",
"SOYBEANS Jul/10", "SUGAR NO.11
2010 Jun 18
1
Re: Links 2003 & Grand Prix 4
Update:
Grand Prix 4 plays almost flawlessly with Catalyst 10.6 and WINE 1.2rc3..
HOWEVER, over the past few releases of WINE (audio work), I've noticed that partly through the playback of Grand Prix 4, the audio suddenly stops. Prior to 1.2rc3, Grand Prix 4 used to crash shortly thereafter. However, since WINE 1.2rc3, after the audio stops, Grand Prix 4 continues without crashing ... just
2002 Jul 25
3
Warning message
hi!
i'm quite new in R and i don't understand why this
statement doesn't work:
> mode(mensuel$VARIANCE.PRIX)
[1] "numeric"
> storage.mode(mensuel$VARIANCE.PRIX)
[1] "integer"
> mean(mensuel$VARIANCE.PRIX)
[1] NA
Warning message:
argument is not numeric or logical: returning NA in:
mean.default(mensuel$VARIANCE.PRIX)
Thanks for help!
2010 Apr 28
3
data frame move columns
Dear group,
Here is my df:
avprix <-
structure(list(DESCRIPTION = c("CORN Jul/10", "CORN May/10",
"ROBUSTA COFFEE (10) Jul/10", "SOYBEANS Jul/10", "SPCL HIGH GRADE ZINC USD",
"STANDARD LEAD USD"), prix = c(-1.5, -1082, 11084, 1983.5, -2464,
-118), quantity = c(0, -3, 8, 2, -1, 0), fees = c(-8.64, -30.24,
-26.4, -25.92, -37.5,
2010 Apr 28
1
gsub,regex and replacing
Dear group,
I need to modify some characters in a data frame. I want to use gsub and the
regex functionalities to do this.
Here is the data frame (df):
DESCRIPTION prix quantity
1 CORN Jul/10 -1.5 0
2 CORN May/10 -1082.0 -3
3 ROBUSTA COFFEE (10) Jul/10 11084.0 8
4 SOYBEANS Jul/10 1983.5
2010 May 26
2
writing function : can't find an object
Dear group,
Here is my function:
#return the daily PL for day y
PLDaily<-function(x,y)
{
#find elements in my directory with "LSCPos" in the name, keep the numeric
part in the name and
#create a list
l<-gsub("\\D","",dir()[grep("LSCPos",dir())])
#select in the list the desired elements
2010 May 11
2
Regex and gsub
Dear group,
Here is my df :
df3 <-
structure(list(DESCRIPTION = c("COPPER May/10", "COTTON NO.2 Jul/10",
"CRUDE OIL miNY May/10", "GOLD Jun/10", "ROBUSTA COFFEE (10) Jul/10",
"SOYBEANS Jul/10", "SUGAR NO.11 Jul/10", "SUGAR NO.11 May/10",
"WHEAT Jul/10", "SPCL HIGH GRADE ZINC USD",
2010 Aug 04
3
merge two data frames
Dear list,
here are my two data frames:
av <-
structure(list(DESCRIPTION = c("COFFEE C Sep/10", "COPPER Sep/10",
"CORN Dec/10", "CRUDE OIL miNY Sep/10", "GOLD Aug/10", "HENRY HUB
NATURAL GAS Sep/10",
"PALLADIUM Sep/10", "SILVER Sep/10", "SOYBEANS Nov/10", "SPCL HIGH
GRADE ZINC USD",
"SUGAR
2006 Sep 06
1
R 2.3.1 and R2.3.0 crash with system() and shell() commands (PR#9207)
Full_Name: Johannes Prix
Version: 2.3.1/2.3.0 not 2.1.1
OS: Windows XP Service Pack 2 Build 2600.xpsp_sp2_gdr.0503011519
Submission from: (NULL) (137.208.41.103)
In a vanilla R, version 2.3.1 or version 2.3.0 the following crashes:
system("gzip.exe")
where I did nothing, prior to this command, but change the directory to my other
working directory where there's gzip.exe. Same
2008 Mar 31
3
Links 2003 & Grand Prix 4
Grand Prix 4 doesn't install completely, i.e. the installation terminates just at the end of the process which might be due to the msi installer.
Links 2003 installs, but aborts in the early stages of boot which might be due to copy protection, e.g. SafeDisc.
2010 Jan 02
3
DxDiag not working - Wine 1.1.35 + Ubuntu 9.10
wine dxdiag.exe spews a few fixme messages (Related to ALSA drivers) and then exits. No Window, no error messages. Till now, this wasn't a problem (several games ran fine) but when I tried installing a legacy game (Grand Prix World by Microprose), it could not detect my graphics card. Tried DxDiag but it isnt working.
Any help will be much appreciated, thanks.
2010 May 12
1
data frame subscription
Dear group,
Here is my df :
pose16 <-
structure(list(DESCRIPTION = structure(c(1L, 2L, 3L, 4L, 5L,
6L, 7L, 8L, 9L, 12L), .Label = c("COPPER May/10", "COTTON NO.2 Jul/10",
"CRUDE OIL miNY May/10", "GOLD Jun/10", "ROBUSTA COFFEE (10) Jul/10",
"SOYBEANS Jul/10", "SUGAR NO.11 Jul/10", "SUGAR NO.11 May/10",
2008 May 23
3
nls diagnostics?
Hi, All:
What tools exist for diagnosing singular gradient problems with
'nls'? Consider the following toy example:
DF1 <- data.frame(y=1:9, one=rep(1,9))
nlsToyProblem <- nls(y~(a+2*b)*one, DF1, start=list(a=1, b=1),
control=nls.control(warnOnly=TRUE))
Error in nlsModel(formula, mf, start, wts) :
singular gradient matrix at initial
2006 Jul 15
1
Running Grand Prix Legends in wine
I am trying to run Grand Prix legends, more specifically the 2004 Demo
(http://www.bhmotorsports.com/GPL/downloads/3239)
I could install the demo using wine but when I launch it, forcing it in
a 1024x768 windows, a blue screen opened then closed, no error
messages.
I found an old howto
(http://www.zefix.tv/linux_wine_racing_simulations/GrandPrixLegends)
but I still couldn't figure it out.
I
2010 Jul 07
4
No Sound on Counter Strike 1.6
Hello, i installed Cs 1.6 on ubuntu 10.04 using wine. But i have one problem. When i play game, after 5-10 minutes my sound in game suddenly turns off. And i need to restart cs to solve this problem. Can you help me with this.
Also i have fps about 50. Can i get it up to 70 [Rolling Eyes] :)
My configuration
Asus P5K
Intel Core2Duo E6550 2.33 GHz
Nvidia 8600GT 256MB
Kingston 2GB
[Laughing]
2009 Feb 07
1
Re: Links 2003 & Grand Prix 4
The errors generated by a debug log when attempting to run Links 2003 v 1.02 with v 1.02 noCD patch:
err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 62
err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 63
err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 64
err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 62
2018 Mar 16
1
Discrepancy: R sum() VS C or Fortran sum
My simple functions were to compare the result with the gfortran
compiler sum() function. I thought that the Fortran sum could not be
less precise than R. I was wrong. I am impressed. The R sum does in fact
match the result if we use the Kahan algorithm.
P.
I am glad to see that R sum() is more accurate than the gfortran
compiler sum.
On 16/03/18 11:37 AM, luke-tierney at uiowa.edu wrote: