nevermind. all.equal() works!
--
View this message in context:
http://r.789695.n4.nabble.com/If-equal-statement-for-character-objects-tp4638359p4638361.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
I have a data frame (trans)
123 P
143 z ...ect
I want to write a statement that says:
if ((trans[i,2]="p")&(trans[1+1,2]="z")){
but I get the warning message that states:
operations are possible only for numeric, logical or complex types
Any ideas?
Thanks
--
View this message i
Thank you so much Jean!
--
View this message in context:
http://r.789695.n4.nabble.com/If-then-statement-if-in-a-list-then-tp4638346p4638351.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://st
I need to write an if/then statement saying something along the lines of:
if (VALUE is in list) {...
How do I write that in R's language.
Thanks!
--
View this message in context:
http://r.789695.n4.nabble.com/If-then-statement-if-in-a-list-then-tp4638346.html
Sent from the R help mailing list a
Yes, why wouldn't I? It's a linear model between two sets of data: x and y.
Also, what would the new data be if i want to predict into the future? So,
for example, the data goes from a month ago to today. I want to predict what
tomorrow's data would be. So what is "newdata"?
--
View this mes
How do I set it up? Because when I do predict(model) I get a ton of points, not
just one.
- Original Message -
From: "Uwe Ligges-3 [via R]"
Date: Tuesday, July 24, 2012 2:28 pm
Subject: Re: Linear Model Prediction
To: cm
>
>
>
>
> On 24.07.2012 20:20, cm
I have data X and Y, and I want to predict what the very next point would be
based off the model. This is what I have:
>model=lm(x~y)
I think I want to use the predict function, but I'm not exactly sure what to
do.
Thank you!
--
View this message in context:
http://r.789695.n4.nabble.com/Line
Any reason I'd get an error like this?
Error in if (round(pos[o + 1]) == (pos[o + 1] - 0.4)) { :
missing value where TRUE/FALSE needed
but when i do it individually, out of the for loop,
> (round(pos[o+1])==(pos[o+1]-.4) )
65
TRUE
--
View this message in context:
http://r.789695.n4.na
Hi,
I have a comma separated file with element names in first column like shown
below :
Name_1,0
Name_2,0.8878,0
Name_3,0.6777,0.7643,0
Name_4,0.9844,0.1234,0.1414,0
Original data is a 1x1 symmetric matrix (600 MB). To reduce file
size, I have minimized matrix to only lower triangle. Is
9 matches
Mail list logo