jholtman wrote:
>
> try this to get the column output:
>
> cat(x, sep='\n', file='/tempxx.txt')
>
>
Thanks for your answer.
I've tried the command "cat" , but give me this error:
> x<-permn(c(2,3,5,7))
> cat(x, file="/my_path/filename.txt","\n")
Error in cat(list(...), file, sep, fill, la
Hi, I have a question about "how" write output in a .txt file.
With tihs command, I write permutations of the numbers (1,2,3) in a .txt
file:
> x<-permn(c(1,2,3))
> write.table(x, file="filename.txt", row.names=F, col.names=F)
This is output in filename.txt:
1 1 3 3 2 2
2 3 1 2 3 1
3 2 2 1 1 3
Dirk Eddelbuettel wrote:
>
> Supply an argument 'lib' pointing to a directory where you write to, or
> alternatively (but not generally recommended) run R as root to install the
> package as root can write to /usr/lib/R/lib.
>
> Dirk
>
OK! I've installed this package.
Thank you!
:)
Example:
Eiger wrote:
>
>
> When I try to install the "combinat" package, it give me these errors:
> _
>
> Error in utils::install.packages(l[s + 1])
require(combinat)
permn((c(23,46,70,71,89))
Thanks.
When I try to install the "combinat" package, it give me these errors:
_
--- Please select a CRAN mirror for use in this session ---
Warning in utils::install.packages(l[s + 1]) :
argume
Question 1.
I would calculate all the permutations of numbers (23,46,70,71,89)
How can I write correctly the code?
(Load gregmisc)
> permutations (..?...)
__
Question 2.
It's possible permute a string?
..for example:
EIGER
EGIER
EREGI
etc..etc..
Thanks,
E.
--
V
cls59 wrote:
>
> Hope this helps!
>
> -Charlie
>
Thanks!!!
:)
--
View this message in context:
http://www.nabble.com/save-data-in-a-txt-file-tp25531307p25554140.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.o
riable "a".
There is a way to save in a .txt file the values "a" and "b" as consecutive
data? (but I would use many variables..)
..like this:
9
7
8
8
4
5
Question 2:
is possible save data as rows?
(9 7 8 8 4 5)
thank's
Eiger
--
View this message in contex
8 matches
Mail list logo