Displaying 8 results from an estimated 8 matches for "function3".
Did you mean:
function
2012 Jul 30
6
Convert variable to STring
Dear all,
I have a variable that I would like also to use it as a string. The reasons is that I want to collect results from different function to one table.. So when I use the
colnames(mymatrix) <-c(function1.function2,function3)
the function1, function2, function3 to be "converted" to simple strings so as
colnames(mymatrix) <-c("function1","function2","function3")
Could you please help me understand how I can do that in R?
Regards
[[alternative HTML version deleted]]
2008 Apr 22
2
optimization setup
...eturn( list( a = a, b = b )) }
#-----------------------------------------------------------
function2<-function (x, theta)
{P <- function1(x, theta)
c <- P$a * x * exp(-theta[2])
d <- P$b * exp(x)
q <- theta[1] / theta[3]
res <- c + d + q; res}
# Function to be optimized
function3 <- function(theta1,theta2,theta3) {
n <- length(data)
-sum( function2(x = data[2:n], theta = c(theta1, theta2, theta3) ))}
# 'data' is my input ts class object
#--------------------------------------------------------------------------------------
Then I want to maximize function3 wi...
2012 Feb 09
3
calling the function which is stored in a list
Hi
I'm storing two functions in a list
# creating two function
function1 <- function(n) {
return(sum(n))
}
function2 <- function(n) {
return(mean(n))
}
#storing the function
function3 =c(function1,function2)
is it possible to call the stored function and used it ?
x=c(10,29)
funtion3[1](x)
Thanks
-----
Thanks in Advance
Arun
--
View this message in context: http://r.789695.n4.nabble.com/calling-the-function-which-is-stored-in-a-list-tp4372131p4372131.html
Sent from...
2008 Feb 20
1
Problem Using the %in% command
Hello all!
I have the following problem with the %in% command:
1) I have a data frame that consists of functions (rows) and genes
(columns). The whole has been loaded with the "read.delim" command
because of gene-duplications between the different rows.
2) Now, there is another data frame that contains all the genes (only
the genes and without duplicates) from all the functions of
2009 May 25
0
Or operator on working on the r-objects doesn't generate a logical value
...ord_num,item_num]=='3' || dataset[record_num,item_num]=='4'
"
type of the above text prepared is "list"
Say it is text<- dataset[record_num,item_num]=='3' ||
dataset[record_num,item_num]=='4'
*Step-III* Now this 'text ' is passed to another function3 where it is
clubbed to some other text to prepare a bigger text.
Like this(which will be used as an if-condition later) and then i tried
printing it :--
print ( (text) || dataset[record_num,item_num]=="NUL" ||
dataset[record_num,item_num]=="" || dataset[record_num,item_num]==&...
2015 Jul 06
2
Measuring boot time
Hello Everyone
I'd like to know what's the best way to measure syslinux functions duration.I know how to measure overall time (from syslinux start), but is there an easy way to break it down?
Thanks,Tal
2012 Jul 24
3
package memisc: recode examples
Dear people,
Yesterday I looked at the recode command in the memisc package and ran the
following example stated in the manual:
x <- as.item(sample(1:6,20,replace=TRUE),
labels=c( a=1,
b=2,
c=3,
d=4,
e=5,
f=6))
print(x)
f <- as.factor(x)
f
recode(f,
2015 Jul 08
2
Measuring boot time
...s the best way (I've read about CPU's synchronization problems with it) but I'm not sure how to do it otherwise.
I've added the following TSC reads at:1) the begining of a custom c32 module which later calls "syslinux_run_command"2)?the begining?of "start_kernel" function3) end of kernel load
As far as I understand the duration between 1 to 2 is bootloader time (am I wrong?).
Using the custom BIOS:- it takes ~1.1 seconds for bootloader to finish- it takes ~0.9 seconds for Linux to finish
Using the general purpose BIOS:- it takes ~0.45 seconds for bootloader to finish...