> My concern was that it was "outside" the density function and I thought
> the density function would throw an error before it passed anything to
> na.omit().
>
> plot(na.omit(density(c(1,1,1,1,1,NA,4,4,4,4))) )
> Error in density.default(c(1, 1, 1, 1, 1, NA, 4, 4, 4, 4)) :
> 'x' contains mis
On Feb 3, 2011, at 2:14 PM, Ben Bolker wrote:
On 02/02/2011 09:29 AM, David Winsemius wrote:
On Feb 2, 2011, at 8:22 AM, Ben Bolker wrote:
Ramya gmail.com> writes:
I have the code for the density plot
j <- 8
plot(density(diff_in_sample[,1]), main = list.files()[j])
for(i in 1:25){
lines(
On 02/02/2011 09:29 AM, David Winsemius wrote:
>
> On Feb 2, 2011, at 8:22 AM, Ben Bolker wrote:
>
>> Ramya gmail.com> writes:
>>
>>> I have the code for the density plot
>>> j <- 8
>>> plot(density(diff_in_sample[,1]), main = list.files()[j])
>>> for(i in 1:25){
>>> lines(density(diff_in_sample
On Feb 2, 2011, at 8:22 AM, Ben Bolker wrote:
Ramya gmail.com> writes:
I have the code for the density plot
j <- 8
plot(density(diff_in_sample[,1]), main = list.files()[j])
for(i in 1:25){
lines(density(diff_in_sample[,i]))
}
This gives me an error
Error in density.default(diff_in_sample[,
Ramya gmail.com> writes:
> I have the code for the density plot
> j <- 8
> plot(density(diff_in_sample[,1]), main = list.files()[j])
> for(i in 1:25){
> lines(density(diff_in_sample[,i]))
> }
>
> This gives me an error
> Error in density.default(diff_in_sample[, i]) :
> 'x' contains missing
Hi,
I have the code for the density plot
j <- 8
plot(density(diff_in_sample[,1]), main = list.files()[j])
for(i in 1:25){
lines(density(diff_in_sample[,i]))
}
This gives me an error
Error in density.default(diff_in_sample[, i]) :
'x' contains missing values
I am not quite sure what to do.
6 matches
Mail list logo