search for: myvar1

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

Did you mean: myvar
2006 May 21
2
nls & fitting
...4.4272 130.390552 6 1264.9111 36.727069 7 1788.8544 52.848587 8 2449.4897 25.128742 9 3464.1016 7.531766 10 4472.1360 8.827367 11 6123.7244 6.600603 12 8660.2540 4.083339 I would like to fit N as a function of x according to a function depending on 9 parameters (A1,A2,A3,mu1,mu2,mu3,myvar1,myvar2,myvar3), namely N ~ (log(10)*A1/sqrt(2*pi)/log(myvar1)*exp(-((log(x/mu1))^2)/2/log(myvar1)/log(myvar1)) +log(10)*A2/sqrt(2*pi)/log(myvar2)*exp(-((log(x/mu2))^2)/2/log(myvar2)/log(myvar2)) +log(10)*A3/sqrt(2*pi)/log(myvar3)*exp(-((log(x/mu3))^2)/2/log(myvar3)/log(myvar3))) (i.e. N is to be...
2004 Nov 04
3
calling a var by name in another var
Hello list, I'd like to use a variable (or a column of a data frame) by using its name as a string. E.g.: Data2003 <- c(150,200,120) Data2004 <- c(145,211,110) myvar1 <- "Data2003" myvar2 <- "Data2004" # now I'd like do do this total <- Data2003 + Data2004 # in any way like # total <- ???(myvar1, myvar2) # or # total <- ???(myvar1) + ???(myvar2) # or something like that Is there a possibility to do this in R - can't...
2012 Jul 26
4
names function not working at the 2nd place in a program
Hello, I am using names function to name an array. It works first time when I use *as.numeric(names(myVar1)* However, at a place later, when I tried to use a very similar line of code *as.numeric(names(myVar2)*, it always returned 'numeric(0)' (or if I only type 'names(myVar2), it gave me NULL'. Both myVar1 and myVar2 are type of integer. The only difference that I can tell is where th...
2011 Jun 13
2
use variable value to create new variable name
Hi, Is it possible (and how) to use a variable value to create a name of a new R variable? I want to do something like this: for (i in 1:3) { newvarialbe_#i# = somedata } where #i# is a value stored by i. In the first loop, there will be newvariable_1, in second newvariable_2 and so on. Thanks in advance, Maciek [[alternative HTML version deleted]]