search for: crude

Displaying 20 results from an estimated 721 matches for "crude".

Did you mean: crud
2014 Nov 22
2
Problemas con tm
Estimados compañeros tengo un problema con la librería tm o con windows 8.1 o con algo que no controlo. Hace tiempo con windows 7 y una versión anterior de R ejecutaba este código: library(tm) data("crude") crude <- tm_map(crude, tolower) tdm<-TermDocumentMatrix(crude) y sin problemas me creaba tdm. Ahora si lo ejecuto me da el siguiente error: Error: inherits(doc, "TextDocument") is not TRUE Pero si quito la línea de código crude <- tm_map(crude, tolower) Me crea tdm s...
2012 Apr 13
4
Help with stemDocument
Hi, All: I am new to R and tm package. I'm trying to do the stemming using tm_map() and it doesn't seem to work: *I used:* > stemDocument(t_cmts[[100]]) *Where t_cmts is the corpus object, the results is:* bottle loose box abt airpak sections top plastic bottle squashed nearly flush neck previous shipments bottle wrapped securely bubble wrap wno bottle damage packaging poor
2007 Jul 25
2
Crude delay?
Hello, What is meant by crude delay in PESQ quality testing? And what is its tolerant limit for good quality. rgds, Sharan
2007 Jul 25
2
RE: Crude delay?
...culated? What happens if i directly write all the 320 shorts I get after decodong onto a file? --sharan -----Original Message----- From: Jean-Marc Valin [mailto:jean-marc.valin@usherbrooke.ca] Sent: Thursday, July 26, 2007 10:39 AM To: sharanu@sarayusoftech.com Cc: speex-dev@xiph.org Subject: Re: Crude delay? I think it's just the delay it found between the input and output. In any case, you shouldn't pay attention to it (unless you get a very large value, in which case it can mean a bug in how you generate the files). Jean-Marc Sharanu wrote: > Hello, > What is meant by crude...
2007 Jul 25
0
Re: Crude delay?
...delay that corresponds to the lookahead of Speex. No big deal. Jean-Marc > -----Original Message----- > From: Jean-Marc Valin [mailto:jean-marc.valin@usherbrooke.ca] > Sent: Thursday, July 26, 2007 10:39 AM > To: sharanu@sarayusoftech.com > Cc: speex-dev@xiph.org > Subject: Re: Crude delay? > > > I think it's just the delay it found between the input and output. In > any case, you shouldn't pay attention to it (unless you get a very large > value, in which case it can mean a bug in how you generate the files). > > Jean-Marc > > Sharanu wr...
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 Jul/10", "SUGAR NO.11 May/10", "WHEAT Jul/10", "PRIMARY NICKEL USD", "PRM HGH GD ALUMINIUM USD", "SPCL HIGH GRA...
2010 Jun 21
5
Replacing elements of a list over a certain threshold
...ments of this list that are above a certain numerical threshold with the value of the threshold. e.g example=list(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) threshold=5 <magic code goes here> example=(1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1). I have written a crude script that achieves this but it's very slow. Is there a way to do this using some R function? Crude script: http://pastebin.com/3KSfi8nD
2010 May 11
1
merge two data frames
Dear group, I have these 2 following data frame: allcon <- structure(list(DESCRIPTION = structure(1:17, .Label = c("COFFEE C Jul/10", "COPPER May/10", "CORN Jul/10", "CORN May/10", "COTTON NO.2 Jul/10", "CRUDE OIL miNY May/10", "GOLD Jun/10", "HENRY HUB NATURAL GAS May/10", "ROBUSTA COFFEE (10) Jul/10", "SILVER May/10", "SOYBEANS Jul/10", "SPCL HIGH GRADE ZINC USD", "STANDARD LEAD USD", "SUGAR NO.11 Jul/10", "SUG...
2011 Dec 22
2
Stepwise in lme
...xed model but with many variables, it is time consuming. I thought I'd try to use an automated approach. stepAIC gave me false convergence when I used it with my model, so I thought it can't be hard to set up a basic program to do it based on the p-values. Thus I tried a couple of (very) crude options: 1) trying to 'multiply' my 40 terms by a vector of length 40 of 1's (some of which would then become 0's so that the term would be effectively eliminated in the model). This didn't work as lme didn't recognise the vector. 2) setting the term I wished to drop to a...
2006 Aug 24
2
Why are lagged correlations typically negative?
Recently, I was working with some lagged designs where a vector of observations at one time was used to predict a vector of observations at another time using a lag 1 design. In the work, I noticed a lot of negative correlations, so I ran a simple simulation with 2 matched points. The crude simulation example below shows that the correlation can be -1 or +1, but interestingly if you do this basic simulation thousands of times, you get negative correlations 66 to 67% of the time. If you simulate three matched observations instead of three you get negative correlations about 74% of the...
2006 Mar 26
2
Problem with names() in a plot after ordering a data.frame. Syntax or stupidity?
...2.0 Windows XP This started as a simple exercise to see if I could produce a simple Cleveland style dotchart with a line from the '2' axis to the dot rather than a continuous line as do "dotchart" and "dotchart2". At least I could not find that option. I got a crude program to work but it includes unnecessary steps. The data in Area (below) is sorted in reverse order to how I want it displayed I am doing to many 'sorts' either a sort() or a rev() to handle this problem. When I change from sorting variables to using order() on the data.frame I lose...
2003 Jul 14
2
special characters
Dear R-users, Some hours ago I successfully installed R 1.7.1 on my Linux computer (SuSE 8.1). Now I am trying to get my scripts work which I have written for R/Windows. * While with Windows I was able to use the vowels with the accents present in the Hungarian language: > d$crude.inc<-d$esetsz?m/d$?vk?zepi.l?leksz?m*1000000 > the same line leads to an error on Linux: > d$crude.inc<-d$esetsz?m/d$?vk?zepi.l?leksz?m*1000000 Error: syntax error > * This must be a difference in the behaviour of R, not the operating system because the following tests passed...
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 NO.11 Oct/10", "WHEAT Sep/10"), prix = c(-168.3, -1.600000...
2011 Jun 07
3
Logistic Regression
...nt variables that are categorical in nature and the depndent variable is dichotomus. Initially I run univariate analysis and added the variables with significant p-values (p<0.25) in my full model. I have three confusions. Firstly, I am looking for confounding variables by using formula "(crude beta-cofficient - adjusted beta-cofficient)/ crude beta-cofficient x 100" as per rule if the percentage of any variable is >10% than I have considered that as confounder. I wanted to know that from initial model i have deducted one variable with insignificant p-value to form adjusted model....
2002 Aug 30
5
density() returns a density function that does not add up to 1
Dear R users, I ran into this curious problem: > d <- rnorm(100) > d.density <- density(d) > sum( d.density$x * d.density$y) [1] 2.517502 Admittedly the method of computing the mass under the density curve at line 3 is crude. But 2.5 is pretty far from 1, the value it should be. I tried a few other dataset and got similar result. Am I missing something obvious? Or is the return of density() not supposed to be normalized? Thanks in advance! Jonathan -- Jonathan Q. Li, PhD Agilent Technologies Laboratory Palo Alto, C...
2011 Aug 04
2
survival probability estimate method
...d by constrained cubic splines with 3 df. These models tend to be more robust for prediction of survival probabilities and corresponding confidence limits at late follow-up time as a result of the modeling of the baseline cumulative hazard function by natural cubic splines (in contrast to using the crude hazard function itself)." ? Does R provide a package/function to do this particular method for estimating survival probability as a function of a continuous variable? Is the survest.cph() in rms package doing estimation with just the crude hazard function? ? Thanks very much! ? John
2010 Mar 31
1
tm package- remove stowords failling
Hi, I just noticed that by inspecting the matrix term that no all stopwords are removed, does someone know how to fix that? library(tm) data("crude") d<-tm_map(crude, removeWords, stopwords(language='english')) dt<-DocumentTermMatrix(d,control=list(minWordLength=3, minDocFreq=2)) inspect( dt) I am using R version 2.10, tm package 0.5-3 cheers Welma [[alternative HTML version deleted]]
2009 Jan 25
1
Automatic shortening of text to fit into area
Hello, A comment in engine.c states: "/* don't draw anything; this could be made less crude :) */". The following patch makes it less crude: If the device doesn't support clipping and the text doesn't fit into the area, then remove one character after another from the text until either the text fits or the string is empty. I attached the patch?it's not indented cor...
2015 Sep 21
3
New software based on libvirt
...lo, I'm introducing to you the decentralized cloud Cherrypop. Combining libvirt and LizardFS (as of now) it becomes a cloud completely without masters. Thus, any node is sufficient for the cloud to be up and therefore no wasted resources and no single point of failure. It's still pretty crude software but will work with some tinkering. Hope you try it and like it! For more information, source and binary: https://github.com/gustavfranssonnyvell/cherrypop //Gustav
2014 Feb 21
3
[LLVMdev] make check issue with llvm-cov
> > And in the test file there is a line: > > XFAIL: powerpc64, s390x, mips, sparc > > This is a crude attempt at "XFAIL: big-endian". The mips entry here is just > wrong if the system is little-endian - the test passes on little-endian machines > and fails on big-endian. This is obviously a problem. 'XFAIL: mips' counts as an XFAIL for all mips targets because lit is checki...