search for: pet1

Displaying 3 results from an estimated 3 matches for "pet1".

Did you mean: net1
2011 Dec 08
1
partial duplicates of dataframe rows, indexing and removal
Hello. I am trying to remove from my dataframe, those rows in which the first 7 columns are duplicated even if subsequent columns make those rows unique. df<-data.frame(id=rep(c('amy','bob','joe') , each=5), pet1=sample(LETTERS[1:3],15, replace=T), pet2=sample(LETTERS[1:3],15, replace=T), pet3=sample(LETTERS[1:5],15, replace=T)) >df id pet1 pet2 pet3 1 amy C B A 2 amy B A A 3 amy A A D 4 amy B C A 5 amy C B B 6 bob B A A 7 bob...
2008 May 30
4
Request: Documentation of formulae
In working through material on p.272 of MASS (4th ed.), I came across the following model formula: pet1.lm <- lm(Y ~ No/EP - 1, Petrol) I was at a loss to understand the use of "/" until I looked in "An Introduction [!] to R," where I found the explanation. My request is that more complete material on model formulae be lifted from "Introduction to R" (or elsewhere)...
2011 Nov 29
1
Problems with Raster and clim.pact packages with large netcdf files (2.7G) in x64 bit R
...RStudio\bin\x64\rsession.exe File: posixio.c, Line 417 Expression: offset >= 0 This application has requested the Runtime to terminate it in an unusual way.Please contact the application's support team for more information. here is an example of my code library(raster) library(clim.pact) PET1<-brick("cru_ts_3_10.1901.2009.pet.dat.nc") #will give error PET<-retrieve.nc("cru_ts_3_10.1901.2009.pet.dat.nc",x.rng=c(20,50),y.rng=c(-15,40)) #will give error The files are CRU data downloaded from BADC. Smaller files work ok but these are bigger file 1. This i...