[R] Save the elements of an atomic vector to a text fil

jim holtman jholtman at gmail.com
Fri Mar 13 16:09:24 CET 2009


'str(x)' would help.  I assume that this is a named list, so this
might plot it for you:

plot(names(x), x)

On Fri, Mar 13, 2009 at 10:59 AM, johnhj <jharris at web.de> wrote:
>
> Hii,
>
> I will save the elements of the vector median<-with(x, tapply(V3, grup,
> median)). The output of this vector is:
>
>  25   50   75  100  125  150  175  200  225  250  275  300  325  350  375
> 400  425  450  475  500
> 17.8 17.8 17.5 17.8 17.7 17.6 17.7 17.6 17.8 17.7 17.6 17.7 17.8 17.7 17.8
> 17.8 17.8 17.8 17.7 17.7
>
> Can anybody help me how to do it. I will save it to a text file...
>
> greetings,
> johnh
> --
> View this message in context: http://www.nabble.com/Save-the-elements-of-an-atomic-vector-to-a-text-fil-tp22498222p22498222.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?




More information about the R-help mailing list