search for: crit1

Displaying 4 results from an estimated 4 matches for "crit1".

Did you mean: crit
2005 Nov 14
2
change some levels of a factor column in data frame according to a condition
Dear R-users, I am looking for an elegant way to change some levels of a factor column in data frame according to a condition. Lets look at the following data frame: > data.frame(crit1=gl(2,5), crit2=factor(letters[1:10]), x=rnorm(10)) crit1 crit2 x 1 1 a -1.06957692 2 1 b 0.24368402 3 1 c -0.24958322 4 1 d -1.37577955 5 1 e -0.01713288 6 2 f -1.25203573 7 2 g -1.94348533 8 2 h -0.16041719 9...
2012 Aug 04
2
find errors in a directory of files
...pose of this is to create service checks in nagios. Because you don't know the names of the files ahead of time traditional plugins like check_logs or check_logfiles.plwon't work. Here's what I was able to come up with: #!/bin/bash log1='/u01/app/oracle/admin/ecom/udump/*' crit1=($(grep 'ORA-00600' $log1)) crit2=($(grep 'ORA-04031' $log1)) crit3=($(grep 'ORA-07445' $log1)) if [ $crit1 ] ; then echo "$crit1 on ecom1" status=2 elif [ $crit2 ]; then echo "$crit2 on ecom1" status=2 elif [ $crit3 ]; then echo &...
2012 Sep 24
4
Overriding variables.
I am trying to override variables in a class that is defined in the default node profile. I want parent class to be included in every single node, but override its variables in others. I have tried it several different ways now, and every single time the variables either become unset (undefined) or are set to the value of the first if statement. Here is my current iteration of failure.
2008 Mar 07
1
Trouble with R CMD check
...ning: 'iloc' might be used uninitialized in this function hareall.c:646: warning: 'lloc' might be used uninitialized in this function hareall.c:646: warning: 'uloc' might be used uninitialized in this function hareall.c: In function `adders': hareall.c:529: warning: 'crit1' might be used uninitialized in this function hareall.c: In function `share': hareall.c:2126: warning: 'bb1' might be used uninitialized in this function hareall.c:2126: warning: 'bt1' might be used uninitialized in this function hareall.c:2126: warning: 'bb2' might...