Nordlund, Dan (DSHS/RDA) wrote:
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org] On Behalf Of Peter Dalgaard
Sent: Thursday, July 22, 2010 3:13 PM
To: Pat Schmitz
Cc: r-help@r-project.org
Subject: Re: [R] Question about a perceived irregularity
Subject: Re: [R] Question about a perceived irregularity in R syntax
Pat Schmitz wrote:
Both vector query's can select the values from the data.frame as
written,
however in the first form assigning a value to said selected numbers
fails.
Can you explain
Both vector query's can select the values from the data.frame as written,
however in the first form assigning a value to said selected numbers fails.
Can you explain the reason this fails?
dat - data.frame(index = 1:10, Value = c(1:4, NA, 6, NA, 8:10))
dat$Value[dat$Value == NA] - 1 #Why does
Pat Schmitz wrote:
Both vector query's can select the values from the data.frame as written,
however in the first form assigning a value to said selected numbers fails.
Can you explain the reason this fails?
dat - data.frame(index = 1:10, Value = c(1:4, NA, 6, NA, 8:10))
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org] On Behalf Of Peter Dalgaard
Sent: Thursday, July 22, 2010 3:13 PM
To: Pat Schmitz
Cc: r-help@r-project.org
Subject: Re: [R] Question about a perceived irregularity in R syntax
Pat Schmitz
5 matches
Mail list logo