Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

4 results for “from:Kushantha Perera”

subset data
Kushantha Perera · May 5, 2009 · r-help

Try, data[data$id%in%selected.id,] Good day! Kushantha -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of abdul kudus Sent: Wednesday, May 06, 2009 10:12...

Split data frame based on Class
Kushantha Perera · May 18, 2009 · r-help

Try split()! ?split e.g > a var1 var2 var3 1 a 1 4 2 a 2 5 3 a 3 6 4 b 4 7 5 b 5 8 6 a 6 9 7 b 7 NA 8 c 8...

search through a matrix
Kushantha Perera · Apr 21, 2009 · r-help

row() gives the row number of each element of the matrix, similarly col() gives the column number. By definition, diagonal elements are the elements correspond to same row and column numbers. That's how it works... x <- matrix(1:12...

transposing/rotating XY in a 3D array
Kushantha Perera · May 15, 2009 · r-help

Try this: > x <- array(1:12,c(3,2,2)) > x , , 1 [,1] [,2] [1,] 1 4 [2,] 2 5 [3,] 3 6 , , 2 [,1] [,2] [1,] 7 10 [2,] 8 11 [3,] 9 12 > xt <- aperm(x, c(2...

Can't find what you're looking for? Try searching with Google .