search for: whinlatter

Displaying 2 results from an estimated 2 matches for "whinlatter".

2006 Sep 08
1
Computing skewness and kurtosis with the moments package
Hi, I'm a newcomer to R, having previously used SPSS. One problem I have run into is computing kurtosis. A test dataset is here: http://www.whinlatter.ukfsn.org/2401.dat > library(moments) > data <- read.table("2401.dat", header=T) > attach(data) > loglen <- log10(Length) With SPSS, I get Skewness -0.320 Kurtosis -1.138 With R: > skewness(loglen) [1] -0.317923 > kurtosis(loglen) [1] 1.860847 Using the exa...
2007 Feb 08
1
Problem with factor state when subset()ing a data.frame
Hi folks, I am running into a problem when calling subset() on a large data.frame. One of the columns contains strings which are used as factors. R seems to automatically factor the column when the data.frame is contstructed, and this appears to not get updated when I create a subset of the table. A minimal testcase to demonstrate the problem follows: sample <- data.frame(c("A",