search for: kushantha

Displaying 4 results from an estimated 4 matches for "kushantha".

Did you mean: kushana
2009 May 06
4
subset data
Dear all, > data <- data.frame(id=seq(1:10),x=runif(10)) > data id x 1 1 0.3604464 2 2 0.4813987 3 3 0.0160058 4 4 0.7165909 5 5 0.6092248 6 6 0.2413049 7 7 0.7981568 8 8 0.6093960 9 9 0.2887064 10 10 0.3485780 > selected.id <- sample(data$id,3,replace=F) > selected.id [1] 9 7 1 I want to select data with corresponding selected.id, namely >
2009 May 15
2
transposing/rotating XY in a 3D array
Dear list, We have a number of files containing similarly structured data: file1: A B C 1 2 3 4 5 6 file2: A B C 7 8 9 10 11 12 ... etc My part of R receives all these data as an array: 1,2,3... 12 together with info about dimensions (row,col,fileN) . ( Converting the data into 3D cannot simply done by: array(x, c(2,3,2)) because breaks the structure (e.g. 1,3,5 is type mismatch)
2009 May 18
2
Split data frame based on Class
Each row of my data frame is assigned to a class (eg country). Can you suggest how I break apart the data frame so that I create new data frames for each class eg If Class = "US" put in new dataframe dataUS Thanks in advance for your help Chris
2009 Apr 22
2
Exporting objects plotted with plot3d() - rgl package
...23. Re: joined R-today (Bala subramanian) > 24. rmysql fetch issues (Albert Vilella) > 25. Re: search through a matrix (onyourmark) > 26. Help with R 2.9.0 and XML (Luis Orlindo Tedeschi) > 27. Re: search through a matrix (David Winsemius) > 28. Re: search through a matrix (Kushantha Perera) > 29. Re: search through a matrix (onyourmark) > 30. Re: bug when subtracting decimals? (Marc Schwartz) > 31. Re: automatic exploration of all possible loglinear models? > (Frank E Harrell Jr) > 32. Re: Matrix package,solve() errors and crashes (Martin Maechler...