Displaying 20 results from an estimated 400 matches similar to: "flagging values without a loop"
2012 Oct 17
3
subtotals based on price bands?
I would like to create a subtotal table with custom bands.
seq1 = seq(0, 100, by = 5)
seq2 = seq(100, 1000, by = 100)
Bands = c(seq1, seq2)
#Prices
Prices = sample(1:1000, 200, replace=F)
#corresponding size for the given price above.
size = sample(1:1000, 200, replace=F)
How would I find the subtotal of the size based on a given price falls
within a band?
--
View this message in
2012 Jul 17
2
Table/Frame - output
I would like to output a nicely formatted data frame to a bitmap.
Is this possible in R?
--
View this message in context: http://r.789695.n4.nabble.com/Table-Frame-output-tp4636790.html
Sent from the R help mailing list archive at Nabble.com.
2012 Jul 26
2
conditional sum two dataframes
I have two data frames. One with a matrix of months and the other with a
matrix of values. The two dataframes correspond to each other. I would like
to sum up all the values in by month.
What would be an efficient way to do this?
a=C(2,3,5,2,3,5)
b=c(2,6,3,2,6,3)
c=c(2,6,7,2,6,5)
months <- data.frame(a,b,c)
a=C(200,345,5435,27456,3343,555)
b=c(288,699,377,234,6354,33454)
2012 Oct 17
3
aggregate function not working?
The aggregate function for some reason will now work for me.
The error I'm getting is:
"Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?"
agPriceList=aggregate(PriceList$Size, list(PriceList$bandNum),sum)
*Price list dataframe:*
dput(PriceList)
structure(list(Price = c(0, 8.18, 8.27, 10.42, 10.5, 10.6, 11.13,
2012 Jun 01
1
plot background - excel gradient style background ?
Is there away of putting an excel style gradient background? I want to have
dark blue in the middle and shad to white on the top and bottom.
--
View this message in context: http://r.789695.n4.nabble.com/plot-background-excel-gradient-style-background-tp4632138.html
Sent from the R help mailing list archive at Nabble.com.
2012 Jul 03
1
remove loop which compares row i to row i-1
I would like to remove a loop to speed up my code.
I want to remove a loop which references the last row.
In general I want to a remove a loop which looks something like this:
for 2 to number of rows in a matrix do{
if indextrow-1 is < currentIndexRow then do something.
}
My R code:
for (i in 2:length(tUnitsort$Hour)){
ifelse(tUnitsort[i,4]>=tUnitsort[i-1,4],(tempMC
2012 Nov 05
1
custom function & missing value where TRUE/FALSE needed
I can't figure out why this function wont work.
#Custom Function used
fallInBand <- function(x){
#Assume the bands fall go up form 0 to 100 in intervals of 5 then from 100
to 1000 in intervals of 100.
#returns the location (band number)
if (is.na(x) == FALSE) {
if(x < 100) {#bands of 5
if((x %% 5) >=0){#falls within the band
Result = as.integer(x/5)+1
2012 Jun 06
5
ggplot incorrect legend
How do I create a legend with ggplot?
I think should be getting the FuelTypeNum in the legend.
Plot:
http://r.789695.n4.nabble.com/file/n4632471/Rplot.jpeg
My code is:
ggplot(data=tempTable, aes(x=Bands8, y=SubPercent, fill=FuelTypeNum)) +
geom_bar(position="stack", stat="identity") +
scale_colour_hue('my legend', breaks = levels(tempTable$FuelTypeNum),
2012 Jun 08
2
Percent of a given subset
How would I find the Percent of FuelTypeNum within the Band given
AvailableMW?
example:
type 1 is 1% of PB0
type 2 is 54% of PB0
type 4 is 4% of PB0
type 5 is 42% of PB0
Note: the Bands and fuel types are not always constant.
Data:
FuelTypeNum Bands AvailableMW AvailableMWNewFormat
1 PB0 185319 185.319
2 PB0 18352000 18352
4 PB0 1338785 1338.785
5 PB0 14189756 14189.756
2 PB1
2006 Nov 14
2
Benchmarking DNS and DHCP
Does anyone know of any FOSS tools that can assist in benchmarking ISC
DNS and DHCP services? I would like to simulate X number of users
attempting to pull an IP, resolve DNS names, etc. I would also like to
test TCP connections into a CentOS server. We have some software that
communicates with equipment via a TCP connection and I want to simulate
thousands of TCP connections coming into one
2013 Jun 15
1
Downloading CSV file - RCurl help
There are some CSV file from the link below.
I'm having trouble installing the package. Is this the package I have to use
or is there another one I need to use? If so how do I get this one loaded.
https://www.enmax.com/Power/Energy+Retailers/Settlement+Reports/Profile+settlement+report.htm
install.packages("RCurl", repos =
2014 Apr 03
4
Sieve (randomly?) flagging messages as \\Seen \\Deleted
Hi,
I'm trying to debug (without great results, so far) a very weird
behaviour in my environment.
Sorry if this came out in another form before, but I've not been able to
find out anything resembling what I'm experiencing, so far...
OS is a debian wheezy and dovecot is the version provided by the OS:
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4
2007 Oct 09
1
Better flagging of errors on logs?
Last night dovecot died because of time changed backward.
I noticed that the line from dovecot read
Oct 9 01:00:44 mailstore16 dovecot: Time just moved backwards by 132
seconds. This might cause a lot of problems, so I'll just kill myself now.
Shouldn't such lines have the word "Error" or "Fatal"?
If I set the log_path = to a file, will syslog messages still be
2014 Apr 03
1
Sieve (randomly?) flagging messages as \\Seen \\Deleted
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 3 Apr 2014, Emanuele Balla (aka Skull) wrote:
> I'm trying to debug (without great results, so far) a very weird
> behaviour in my environment.
Did you tried with enabled mail_log plugin?
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
2007 Dec 14
1
flagging glm models with warnings
I'm attempting to run 250 permutations of a negative binomial GLM model for
data on fish counts. Many of the models are fit appropriately, but some
issue warnings such as "convergence not reached" or "step size truncated due
to divergence." I've attempted using glm.nb from the MASS package and the
negbin function from the AOD package, but both still cause some models to
2005 Jun 02
1
Logcheck flagging "RIP" requests from Router
I enabled logcheck on a Debian Sarge box and it is including in it's reports
hundreds of lines like this:
Jun 2 17:56:09 localhost kernel: PUB_IN DROP 4 IN=eth0 OUT=
+MAC=ff:ff:ff:ff:ff:ff:00:09:5b:e9:56:a0:08:00 SRC=192.168.13.10
+DST=192.168.13.255 LEN=52 TOS=0x00 PREC=0x00 TTL=1 ID=20692 PROTO=UDP SPT=520
+DPT=520 LEN=32
Jun 2 17:56:39 localhost kernel: PUB_IN DROP 4 IN=eth0 OUT=
2006 Aug 15
5
acts_as_vibrance_newsletter
class SpamOnRailsMailinglist < ActiveRecord::Base
acts_as_vibrance_newsletter
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060815/61093864/attachment.html
2020 Nov 20
5
return (x+1) * 1000
Dear r-developers-
After many years of using and coding in R and other languages, I came across
something that I think should be flagged by the parser:
bug <- function (x) {
return (x + 1) * 1000
}
> bug(1)
[1] 2
The return() call is not like any other function call that returns a value to
the point where it was called from. I think this should straightforwardly be
handled in the
2007 Aug 22
2
Bounty for function to monitor an OGG-VORBIS stream
If this is the wrong place to post this, please forgive me, and PLEASE
point me to the correct place.
I am looking to hire someone to write a function to scan a ogg-vorbis
stream running on Debian etch and checking for two things. The first is
static, the second is "dead-air". The function require no GUI, just read
a configuration file for the url to scan and how many seconds of
2013 Jun 27
0
[LLVMdev] [LNT] Question about results reliability in LNT infrustructure
On Jun 27, 2013, at 9:27 AM, Renato Golin <renato.golin at linaro.org> wrote:
> On 27 June 2013 17:05, Tobias Grosser <tobias at grosser.es> wrote:
> We are looking for a good way/value to show the reliability of individual results in the UI. Do you have some experience, what a good measure of the reliability of test results is?
>
> Hi Tobi,
>
> I had a look at