Displaying 20 results from an estimated 3000 matches similar to: "Row Sum, exclude positive values"
2008 Jul 23
3
sum each row and output results
Hello,
I have the following data frame (DF):
V5 V5.1 V5.2 V5.3 V5.4 V5.5
2 -5890.18905 -6019.84665 -6211.06545 -6198.9353 -6616.8677 -6498.7183
3 -5890.18905 -6019.84665 -6211.06545 -6198.9353 -6616.8677 -6498.7183
4 -5890.18905 -6019.84665 -6211.06545 -6198.9353 -6616.8677 -6498.7183
5 -5890.18905 -6019.84665 -6211.06545 -6198.9353 -6616.8677
2008 Jul 09
2
rollmean()
Hello,
I am trying to calculate a 31 day running mean in some temperature data
along ROWS. Rollmean() works great along columns, but how do I perform this
same action on my rows?
The data is a matrix of 365 columns (days of the year) by 5,000 rows
(lat/long coordinates).
I would like to perform a 31 day running mean along the 365 days.
I am new to R so any help would be greatly appreciated!
2008 Jul 11
1
While loop
Hello,
I am trying to loop through a matrix column and find the first value <=0 and
store that matrix location in a variable called Start.
I have tried the following:
i <- 1
j <- 1
while (Matrix[i, j] > 0)
i = (i + 1)
#loop until matrix [i, j] value <= 0
#strore that row number in a variable
Start <- i
I am getting a scripting out of bounds error and I suspect maybe the loop
2008 Jul 14
2
long data frame selection error
Hello,
I am trying to select the following headers from a data frame but when I try
and run the command it executes halfway through and give me an error at V188
and V359.
Temp <- data.frame(V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14, V15,
V16, V17, V18, V19, V20, V21, V22, V23, V24, V25, V26, V27, V28, V29, V30,
V31, V32, V33, V34, V35, V36, V37, V38, V39, V40, V41, V42, V43, V44, V45,
2007 Jun 12
4
write some custom values to CDR table
Hi,
I write the CDR of my Asterisk 1.2.17 server in MySQL database
using cdr_addon_mysql.so.
Now I'm trying to write some custom values to userfield column by
the SET(CDR(USERFILED)=SOME_TEXT) sintax, but nothing gets writeen in
MySQL cdr table!!
Why? I'm I skeeping something or what?
Taking a look at the URL:
2006 Oct 13
2
loop, pipe connection, output objects
Hi all,
I have the following -newbye- problem.
Inside R, I am trying to process a file and creating from it many files.
The file is organized in different columns, the second containing a code. I want to create as output objects, which contain only entries in a certain code range, and whose name contain the code itself.
Here is my attempt
indice <- (201:399)
for(i in indice){
data.i <-
2010 Jun 16
2
error message stops "for" command
Hello all,
I am using a for statement to run a loop in R but I get an error message and
the loop stops. I need that the loop continues til the end. I know I can use
the NEXT command but I donĀ“t know how the sintax woul be for this particular
situation.
Any suggestions?
Thanks,
Diana Buitrago
[[alternative HTML version deleted]]
2007 Oct 28
3
tc filter question
Dear all,
I have big question in my mind about "tc filter" sintax. If I give "tc -s -d
filter sh dev eth0" command, then the output is like below :
filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800 bkt
0 flowid 1:2 (rule hit 21553629
success 37907)
2003 Oct 21
3
BEGINNER: please help me to write my VERY simple function
Hi.
1)I have two variables: call a<-c(e.g.0,3,6,7...)
b<-c(e.g.6,8,3,4...)
I want to create a third vector z wich contain the
pairs values z<-c(0,6,3,8,6,3,7,4....and so on for each
pairs (a,b)).
There is a specific function?
How can i write my own function?
2)When i try to write a function and then i save it
like "function.R" file, i try to
2008 Jun 26
2
Read sas7bdat
Hi,
I was reading e-mail about one doubt that you were when you read files
.sas7bdat in R.
Now, I am with the same problem. But I don?t know how can i do that. I have
download de Sas Viewer and i am using this sintax in r:
> read.ssd("X:\\users\\Anresc07","que0411.sas7bdat")
SAS failed. SAS program at
C:\DOCUME~1\leandro\CONFIG~1\Temp\RtmpXR1Tid\file3d6c4ae1.sas
The log
2012 Aug 30
2
Which BUGS should one use?
Hello ALL!
Some times ago I started to learn and play with Bayesian stuffs. Many
advice use of WinBUGS for Bayesian inference Using Gibbs Sampler.
However, WinBUGS is discontinued, and now, development is under
OpenBUGS. I wasn't lazy, so I installed both and tried out. In more than
90% of cases they give comparable outcome. But in few cases I got
substantial differences. Recently, I read nice
2009 Aug 14
1
Fwd: Re: rsyncd.conf chroot yes problem with symlink-ing
Ok it's now Solved !
In spite of trying all day long to figure it out what's wrong in my sintax
i could find, ...using a pencile and a pice of paper, combining all
commands parameters invoked so far and, came to the conclusion that -L does
not stand with -l , think that i couldn't find in any docs or faq so far.
Now, symlinks are being copied without a trouble.
Tnks Paul for
2005 Jun 04
1
How to quickly replace ',' with '|' in dialplans?
Finally I decided to rewrite my dialplans according to the right sintax,
that is
exten => someexten,priority,application(arg1,arg2,...)
should be
exten => someexten,priority,application,arg1|arg2...
Isn't there anybody skilled enough in regular expressions that could write
a quick Search 'n' Replace vi command, please?
TIA,
Alex
2006 Apr 07
1
transfer call after advise
i am developing a web application to manage callcenter, i will shortly
release it on sf.net
this is my problem:
i will grant to users the possibility to transfer calls to other users
using a web interface,
for example if SIP/200 is talking with SIP/400 who wants to transfer
the call to SIP/500 i use this commands with manager API:
Action: Redirect\r\n
Channel: SIP/200-sads\r\n
ExtraChannel:
2004 Dec 26
1
Bug in miniR installation (PR#7448)
While installing the windows miniR programm the setup wizard looks for
the MINIR-1.bin, but the downloaded file is named MINIR_1.bin. In
consequence installation aborts. The user can fix this bug by changing
manually the dash of the file name. Please, make sure that both the
setup wizard and the .bin refer to the same sintax.
Thanks!
Luis Frank
2009 Aug 20
1
problems with RODBC, sqlQuery
Hello,
Im trying to get a Oracle database to R, but I'm having problems with most
of SQL sintax. Suppose that Im trying to bring a table "TABLE" with columns
"COL1","COL2",.. from schema "SCHEMA". What am I doing wrong?
library(RODBC)
channel<-odbcConnect("xxx",uid="xxx",pwd="xxx")
sqlQuery(channel, "select * from
2010 Nov 02
1
subset a data.frame
Hello List,
this should be simple, but cannot figure it out. I am trying to subset a data.frame like this:
> data4
users time
1 user5 2009-12-01 14:09:58
2 user1 2009-12-01 14:40:16
3 user8 2009-12-04 08:18:37
4 user6 2009-12-04 08:18:37
5 user83 2009-12-04 08:18:37
6 user82 2009-12-04 08:18:37
7 user31 2009-12-04 08:18:37
8
2008 Jan 18
2
validate mac address field
Hi to all,
i''d like to insert a validation inside my model about a mac address
field.
I''ve used this sintax but it''s not working.
validates_format_of :mac_address, :with =>
/^((?:[-a-f0-9])+(?:[-a-f0-9])+(?:[-a-f0-9])+(?:[-a-f0-9])+(?:[-a-f0-9])+(?:[-a-f0-9]))$/i,
:on => :create,
2006 Jul 13
6
Migrations + foreign keys
Hi all,
In the AWDR author use the execute method to declare foreign keys:
execute "alter table.... add constraint.... foreign key...."
Is there a ruby sintax to declare a foreign key in a migration class?
--
Posted via http://www.ruby-forum.com/.
2003 Jan 28
5
pam_mkhomedir.so
where and how can i call this module ?
is it in /etc/pam.d ? how is the sintax ?
i'm a suse linux user..
thanx !