search for: flokk

Displaying 7 results from an estimated 7 matches for "flokk".

Did you mean: flock
2011 Nov 07
4
rearrange set of items randomly
Dear all, I hope that this question is not too weird, I will try to explain it as good as I can. I have to write a function for a school project and one limitation is that I may not use the in built function sample() At one point in the function I would like to resample/rearrange the items of my sample (so I would want to use sample, but I am not allowed to do so), so I have to come up with sth
2011 Oct 11
2
matrix multiplication
Dear all, Sorry to bother you with such a stupid question, but I just cannot find the solution to my problem. I'd like to use matrix multiplication for meanA and factorial 3. I use the command meanA%*%factorial 3. But everything I get is: Error in factorial3 %*% A : non-conformable arguments I know that the number of the columns of the first vector has to be the same number of rows of the
2011 Nov 02
1
problem with merging two matrices
Dear all, I hope you can forgive me my stupid questions, but I am a very new R user (; So, this is my question: I have two matrices, those are: matrix1 <- matrix(cbind(vector1, vector2), 1,2, dimnames = list(c("values"), c("T value", "p value"))) matrix2 <- matrix(dcbind,2,6,dimnames =
2011 Oct 11
2
Creating the mean using algebra matrix
Dear all, I wanted to create the mean using a algebra matrix. so I tried this one: > meanAnimals <- new3%*%factorial (Calculates the matrix multiplication of the new3 * factorial). But I get the following error message: Error in new3 %*% factorial : non-conformable arguments These are my matrices: > new3 [,1] [,2] [1,] 1.350 8.1 [2,] 465.000 423.0
2011 Oct 24
1
Using predicted() in R
Dear all, I am a R user since about 3 weeks now and still struggeling with things that must be very easy for you... This week I am struggling with the function predict() I want to use this function to get a 95% interval. I understand that you have to use it in such a way as: lm_examplemodel<- lm(y~x1 + x2 + x3) newdata <- data.frame(x1 = ???, x2 = ???, x3 = ???)
2011 Oct 03
1
Assigning factor names to interaction plot
Hi everyone, I have the following problem: I have three variables, 'group', 'city' and 'pressure' There is an interaction effect between group and city and I'd like to show this in an interaction plot: interaction.plot(group, city, pressure, type="b", col= c(1:2), leg.bty="o", leg.bg="blue", lwd=1,
2011 Nov 23
2
avoiding the sample in built function
Dear all, I am currently working on a function in which I would like to avoid using the command sample(). Therefore, I am now trying to make a for loop that does the same thing as the in built function sample does: Rearranging the items of a object randomly. So, the output I want to you get is the same as sample() would give me: e.g.: data <- c(5,4,6,7,8) sample(data) > data <-