Displaying 2 results from an estimated 2 matches for "iq_prime".
Did you mean:
imprime
2002 Jun 30
4
modifying a vector
...suggestions after my initial query to the list.
I've been busy trying to absorb the docs as fast as possible, but this
little thing has me stumped for the moment.
I'm creating a random sample of 100 item and saving it to a vector named
'iq'. I'd like to create a second vector (iq_prime, say) by adding 20 to
each element of the 'iq' vector. Here's what I've tried.
> iq <- rnorm(100, 80, 15)
> t(dstats(iq)) # Thanks Brett Magill
mean sd variance min max unique n miss skewness
kurtosis
[1,] 78.628 14.223 202.302 49.079 121.294...
2002 Jun 30
4
modifying a vector
...suggestions after my initial query to the list.
I've been busy trying to absorb the docs as fast as possible, but this
little thing has me stumped for the moment.
I'm creating a random sample of 100 item and saving it to a vector named
'iq'. I'd like to create a second vector (iq_prime, say) by adding 20 to
each element of the 'iq' vector. Here's what I've tried.
> iq <- rnorm(100, 80, 15)
> t(dstats(iq)) # Thanks Brett Magill
mean sd variance min max unique n miss skewness
kurtosis
[1,] 78.628 14.223 202.302 49.079 121.294...