Re: [R] How to conduct a PERMANOVA using a dissimilarity matrix

2015-12-23 Thread Tim Richter-Heitmann
O", "0.479", "0.399", "0.374", "0.348", "0.354", "0.365", "0.371", "0"), .Dim = c(9L, 9L), .Dimnames = list(NULL, c("V1", "V2", "V3", "V4", "V5", "V6", "V

[R] Regular R freezes

2015-12-22 Thread Tim Richter-Heitmann
hooting or finding out who the culprit is? Thanks. -- Tim Richter-Heitmann (M.Sc.) PhD Candidate International Max-Planck Research School for Marine Microbiology University of Bremen Microbial Ecophysiology Group (AG Friedrich) FB02 - Biologie/Chemie Leobener Straße (NW2 A2130) D-28359 Bremen Tel.:

Re: [R] How to find out if two cells in a dataframe belong to the same pre-specified factor-level

2015-09-29 Thread Tim Richter-Heitmann
__ R-help@r-project.org <mailto:R-help@r-project.org> mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minima

Re: [R] Split a dataframe by rownames and/or colnames

2015-02-23 Thread Tim Richter-Heitmann
rom list2env? Thank you very much! Thanks, On 20.02.2015 20:36, David Winsemius wrote: On Feb 20, 2015, at 9:33 AM, Tim Richter-Heitmann wrote: Dear List, Consider this example df <- data.frame(matrix(rnorm(9*9), ncol=9)) names(df) <- c("c_1", "d_1", "e_

[R] Split a dataframe by rownames and/or colnames

2015-02-20 Thread Tim Richter-Heitmann
"_")), envir=.GlobalEnv) However, i changed my mind and want to do it now by rownames. Exchanging colnames with rownames does not work, it gives the exact same output (9 rows x 3 columns). I could do as.data.frame(t(df_x), but maybe that is not elegant. What would be the solution for spli

[R] Creating submatrices from a dataframe, depending on factors in sample names

2014-12-01 Thread Tim Richter-Heitmann
df[temp, temp] }) unique_values <- lapply(sub.matrices, function(x) x[upper.tri(x)]) names(unique_values) <- unique(indx) This code needs to be expanded to form sub.matrices for any combination of unique indices in temp. Thank you so much! -- Tim Richter-H

[R] [vegan] Error in as.vector(x, mode) : , cannot coerce type 'builtin' to vector of type 'any' when performing anova on CCA objects

2014-10-09 Thread Tim Richter-Heitmann
his could happen? I am sorry for not providing data for reproduction, as the data sets are pretty large. -- Tim Richter-Heitmann (M.Sc.) PhD Candidate International Max-Planck Research School for Marine Microbiology University of Bremen Microbial Ecophysiology Group (AG Friedrich) FB02 - Biolog

[R] gplot heatmaps: clustering according to rowsidecolors + key.xtickfun

2014-09-04 Thread Tim Richter-Heitmann
.9), seq(82.0,86.4), seq(86.5, 94.5), seq(94.5,100.0)) Is it possible to pass this sequential ordering to key.xtickfun? May i ask for an example code? Thank you very much! -- Tim Richter-Heitmann (M.Sc.) PhD Candidate International Max-Planck Research School for Marine Microbiolo

[R] [vegan]Envfit, pvalues and ggplot2

2014-08-11 Thread Tim Richter-Heitmann
The list contains a vector called $pval containing the pvalues. So, i need to reduce the list created by envfit to rows meeting a criterion in $pval (via "unlist" and "which", i suppose). However, i have difficulties to work out the correct code. Any help is much appr

[R] Problems with read.table and data structure

2014-07-11 Thread Tim Richter-Heitmann
ld need the levels, though! I suspect excel to mess up the "save as tab-delimited text", but the text file seems fine with me on surface (i dont know how the numbers are stored internally). I just see correct numbers, also the View command yields the correct content. Anyone knows he

[R] x,y scatterplots, with averaging by a column

2014-06-30 Thread Tim Richter-Heitmann
with lines. Also of interest would be annotating the whispers with their sample ID (because the whiskers basically represent the values for y1,2 (11,12; 21,22)). Any help is welcome! I am new to R, so please bear with me. Thank you! -- Tim Richter-Heitmann (M.Sc.) PhD Candidate International

[R] Large matrices and pairs/ggpairs

2014-05-20 Thread Tim Richter-Heitmann
lly my questions are not too stupid. -- Tim Richter-Heitmann (M.Sc.) PhD Candidate International Max-Planck Research School for Marine Microbiology University of Bremen Microbial Ecophysiology Group (AG Friedrich) FB02 - Biologie/Chemie Leobener Straße (NW2 A2130) D-28359 Bremen Tel.: 0049(0)421

[R] set new path for package installation, because In normalizePath(path.expand(path), winslash, mustWork) :

2014-01-15 Thread Tim Richter-Heitmann
n ../etc , but there is no path given to the rprofile, which i think is needed. There was another tip to manipulate R_LIBS_USER. But, tbh, there is a limit to my technical skill. Do you have any idea to fix that issue? Or is anyone please willing to give me a little guidance? Thank you ver