Displaying 4 results from an estimated 4 matches for "weight3".
Did you mean:
weight
2010 Mar 25
1
Problem with reshaping data from wide to long format
...553857, 47.919812716, 48.191047925, 54.024111477,
NA, 45.548940909, NA, 53.838601463, NA, 50.50111976, 53.918903127,
45.481404898, 54.465265395, 50.656535116, 53.037833591, 53.346378286,
NA, 40.582047152, 44.724081659, 50.858338403, NA, NA, 40.679801628,
44.8645364, 44.011082672, 51.955119361, NA), weight3 = c(55.198326807,
54.174241705, NA, 54.069526393, 52.746444632, NA, NA, 61.469501304,
51.508762087, 58.266821929, 58.647671581, 59.09318286, 52.884083243,
63.804598792, 58.559146181, NA, 56.556534826, 51.071810157, NA,
62.371304581, NA, 55.025181044, 55.16444531, 59.571659821, 52.516719702,
NA, 57....
2005 Aug 12
2
coercing created variables into a new data frame using na.omit()
...e created within one data frame into a new data frame when using
na.omit(). To illustrate this problem I will give the example I am working on
and the approah I have been using:-
data.frame1<-filepath....
attach(data.frame1)
#create a new variable using a function
new.variable<-rep(1,length(weight3))
for (x in 1:length(new.variable))
{f<-((((age1[x]-7)*(weight[x]-mw))+((age2[x]-7)*(weight2[x]-mw))+((age3[x]-7)*
(weight3[x]-mw)))/(((age1[x]-7)^2)+((age2[x]-7)^2)+((age3[x]-7)^2)));
new.variable[x]<-f}
#then bind it into the existing old data frame
data.frame2<-cbind(data.frame1,newva...
2003 Jan 20
2
ave across columns
Hi:
How do I find average across three columns such as weight1, weight2,
weight3 (20 people, each person has three different measures)? They have
NA's also. Thanks
Tom, Univ of Pittsburgh, ttrut at yahoo.com
2013 Nov 12
1
How to replace NA's data with some value
...6 0.0 81.7 0.2 0.0 NA
0 1.5 60.9 0.0 0.0 15.5
1 13.0 56.8 17.5 32.8 6.4
4 3.0 66.4 2.0 0.3 NA
Now I want to replace those NA's, with the estimation values by using this
formula:
weight$v6
<-(weight1*AS)+(weight2*BL)+(weight3*Serdang)+(weight4*Jhr)+(weight5*Phg);
Targetstation
but I still could not replace the NA's. My problem is, how do I replace
those NA's with another value?
Thank you so much for your help and attention.
Regards,
Dila
[[alternative HTML version deleted]]