[R] R Help

Nicolas Mazziotta nicolas.mazziotta at swing.be
Sat Nov 11 20:28:36 CET 2006


Not sure of what you ask...
Does it help?

$> read.table("Desktop/lahore.txt", header=T)
   Years lrmax n1 n2 n3 n4 arranged
1   1980 207.6 25 24 23 22     29.4
2   1981  92.7 24 23 22 21     49.4
3   1982  67.5 23 22 21 20     55.1
4   1983  93.8 22 21 20 19     58.0
5   1984  60.6 21 20 19 18     59.0
6   1985 117.4 20 19 18 17     59.1
7   1986  65.3 19 18 17 16     60.6
8   1987  59.1 18 17 16 15     65.3
9   1988  76.9 17 16 15 14     67.5
10  1989 123.1 16 15 14 13     69.6
11  1990  83.1 15 14 13 12     75.7
12  1991  75.7 14 13 12 11     76.8
13  1992  69.6 13 12 11 10     76.9
14  1993  55.1 12 11 10  9     83.1
15  1994  49.4 11 10  9  8     84.2
16  1995  76.8 10  9  8  7     87.0
17  1996 189.7  9  8  7  6     88.2
18  1997 151.1  8  7  6  5     92.7
19  1998  59.0  7  6  5  4     93.8
20  1999  88.2  6  5  4  3    110.0
21  2000 110.0  5  4  3  2    117.4
22  2001  87.0  4  3  2  1    123.1
23  2002  29.4  3  2  1  0    136.8
24  2003  84.2  2  1  0  0    151.1
25  2004  58.0  1  0  0  0    189.7
26  2005 136.8  0  0  0  0    207.6
>                                                               

Le Samedi 11 Novembre 2006 20:11, amna khan a écrit :
> Respected Sir
> I request you to please fill the following read.table function and
> read.csvfor my understanding by assuming my data attached with this
> maiL, because I
> am fail to run these functions using manual guidlines.
>
> read.table(file, header = FALSE, sep = "", quote = "\"'",
>            dec = ".", row.names, col.names,
>            as.is = !stringsAsFactors,
>            na.strings = "NA", colClasses = NA, nrows = -1,
>            skip = 0, check.names = TRUE, fill = !blank.lines.skip,
>            strip.white = FALSE, blank.lines.skip = TRUE,
>            comment.char = "#", allowEscapes = FALSE, flush = FALSE,
>            stringsAsFactors = default.stringsAsFactors())
>
> read.csv(file, header = TRUE, sep = ",", quote="\"", dec=".",
>          fill = TRUE, comment.char="", ...)
>
> read.delim(file, header = TRUE, sep = "\t", quote="\"", dec=".",
>            fill = TRUE, comment.char="", ...)
>
> I shall be really thankful to  you.
> REGARDS

-- 
Nicolas Mazziotta



More information about the R-help mailing list