Displaying 6 results from an estimated 6 matches for "otac".
Did you mean:
zotac
2002 Sep 19
5
how to use if statement in function correctly
...ade if statement in my function to work as I want (but I am not very
successful:(
My question is why my function with if statement is evaluated correctly in case of
atomic variables and incorrectly in case of vector variables.
Here is an example:
#function with if statement
fff <- function(otac,sklon)
{
test <- (otac * 3.69683+286.6*(1/sklon)-0.03100345*otac*sklon)
if(test<65)
{otac/sklon * 141.76}
else
{otac * 3.69683+286.6*(1/sklon)-0.03100345*otac*sklon}
}
> fff(20,70)
[1] 40.50286
# correct
> fff(50,70)
[1] 80.42371
#correct
> fff(seq(20,50,5),70)
[1] 40.50286 50...
2009 Mar 04
1
nice way to find or not a value (problem with numeric(0))
Hello,
I have a data.frame called spec containing data about samples. But I don't
have these data for all my samples.
So if I have data (that is code of the sample is in spec$Code), I would like
to assign data1 to the variable m.
If I don't have this data, I would like to assign 1 to m.
I tried this :
m<-spec$data1[spec$Code==code]*(code %in%specmodules$Code) + 1*(!code %in%
2008 Oct 01
2
an unsophisticated question about recoding in a data frame with control structure if {}
Hello all,
I apologize for a terribly simple question. I'm used to using Stata and am trying to `switch' over to R.
I would like to recode a vector in a data frame when the value of it meets the following condition: if (dataframe$factor=='3'){dataframe$thevector<-(an arithmetic mean). What I would like to result is the creation of a new variable within the data frame for
2007 Nov 22
3
[PATCH] one-time ssh-agent confirmation password
...part --------------
An embedded and charset-unspecified text was scrubbed...
Name: README
Url: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20071121/58c326ea/attachment.ksh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ssh-otac-fifo
Url: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20071121/58c326ea/attachment-0001.ksh
2008 Jun 25
1
a loop....
I'm trying to make a loopo with some file....
>
> library(dplR)
> files.rwl <- system("ls *.rwl", intern=TRUE) > files.rwl
[1] "cimfasy.rwl" "rocquce.rwl"
> for (i in files.rwl) assign(gsub("\\.rwl$", "_rwl", i), read.rwl(i, header=0))
There are 70 series
There are 21 series
>
> cimfasy_rwl
1990 1.55 0.00
2007 Nov 24
7
[Bug 1393] New: patch modifies gnome-ssh-askpass to optionally use one-time password
https://bugzilla.mindrot.org/show_bug.cgi?id=1393
Summary: patch modifies gnome-ssh-askpass to optionally use one-
time password
Classification: Unclassified
Product: Portable OpenSSH
Version: 4.7p1
Platform: All
URL: http://www.swcp.com/~pgsery
OS/Version: Linux
Status: NEW
Keywords: