Re: [R] Save Results in svg format

2020-12-03 Thread David Winsemius
On 12/3/20 7:12 PM, Anas Jamshed wrote: #Loading the required libraries library(ape) library(phangorn) library(seqinr) #Importing the required file align_5 <- read.alignment("C:/Users/VAMSI/align 5.fasta", format = "fast") align_119 <- read.alignment("C:/Users/VAMSI/align 119.fasta", format = "

Re: [R] Save Results in svg format

2020-12-03 Thread Bert Gunter
Warning: I have basically no idea what you are doing. I presume that you have consulted ?svg, however. If not , you should probably do so. Also, a search on "save as svg" on rseek.org brought up the svglite package, among other resources. You might want to see what that offers. Cheers, Bert Gunt

[R] Save Results in svg format

2020-12-03 Thread Anas Jamshed
#Loading the required libraries library(ape) library(phangorn) library(seqinr) #Importing the required file align_5 <- read.alignment("C:/Users/VAMSI/align 5.fasta", format = "fast") align_119 <- read.alignment("C:/Users/VAMSI/align 119.fasta", format = "fasta") Computing the distance matrix for bo

Re: [R] save results in a loop

2014-08-13 Thread Greg Snow
Generally if you want to save the results of a loop then it is time to learn to use the lapply and sapply functions instead. Try something like: Tukey <- lapply( 6:n, function(i) Tukey1 = HSD.test(lm(sdata_mg[,i] ~ sdata_mg$Medium+sdata_mg$color+sdata_mg$type+sdata_mg$Micro), 'sdata_mg$Micro') )

[R] save results in a loop

2014-08-13 Thread Wenlan Tian
Hi, i'm new to R. I have a question about how to save results in a loop to a file. Here is an example: for (i in 6:n){ Tukey1 = HSD.test(lm(sdata_mg[,n] ~ sdata_mg$Medium+sdata_mg$color+sdata_mg$type+sdata_mg$Micro), 'sdata_mg$Micro') } I don't know how to do it with the loop for all data, so i

Re: [R] Save results

2009-07-16 Thread David Winsemius
On Jul 16, 2009, at 6:08 AM, stvienna wiener wrote: Have you tried: Z <- diag(10) write.csv(Z, file = "mymatrix.csv") type "?write.csv" to see the options to get a better result with excel. However you can open the file "mymatrix.csv" with excel (it is stored in the "My Documents" folder in

Re: [R] Save results

2009-07-16 Thread ONKELINX, Thierry
-project.org [mailto:r-help-boun...@r-project.org] Namens Jose Narillos de Santos Verzonden: donderdag 16 juli 2009 11:31 Aan: r-help@r-project.org Onderwerp: [R] Save results I imagine I make a function whose results are a Matrix Z How cn I save in a txt or excel file the result of apply my function

Re: [R] Save results

2009-07-16 Thread stvienna wiener
Hi Jose, Have you tried: Z <- diag(10) write.csv(Z, file = "mymatrix.csv") type "?write.csv" to see the options to get a better result with excel. However you can open the file "mymatrix.csv" with excel (it is stored in the "My Documents" folder in windows). Ok, hope that helps. Next time you

[R] Save results

2009-07-16 Thread Jose Narillos de Santos
I imagine I make a function whose results are a Matrix Z How cn I save in a txt or excel file the result of apply my function? something similar to save Z.txt. Thanks in advance. [[alternative HTML version deleted]] __ R-help@r-project.org ma