search for: davenhall

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

2004 May 28
3
Generate a sequence of random integer values
I'm trying to generate a sequence of random integer values. I've tried to combine the random (r) and the sequence (seq) functions but this approach does not work. For example, if I use the following command: > a <- seq(1:100) > a [1] 1 2 3 4 5 6 7 8 9 etc. This is a good start, but what I really want is something that would look like this instead [1] 3
2006 Jun 25
2
Error in model.frame: invalid variable type
I'm getting the following error when trying to execute a glm() procedure: Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type for 'response' The commands I'm using to import the *.csv files, construct the data frame, and run the glm procedure are below: response <- read.csv("Response.csv",
2004 Jun 03
2
Simulating a landscape (matrix) in R
I'm trying to figure out how one might go about simulating a landscape (matrix) in R. For example if one wanted to generate a simulated landscape of precipitation values for some area (say a 100 X 100 matrix) they could generate 10,000 numbers using a random normal distribution with a mean and std. dev. and randomly allocate these generated numbers to the grid cells. However, this is too