Vous êtes sur la page 1sur 2

R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-apple-darwin9.8.

0/x86_64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. During startup - Warning messages: 1: Setting LC_CTYPE failed, using "C" 2: Setting LC_COLLATE failed, using "C" 3: Setting LC_TIME failed, using "C" 4: Setting LC_MESSAGES failed, using "C" [R.app GUI 1.40 (5751) x86_64-apple-darwin9.8.0] WARNING: You're using a non-UTF8 locale, therefore only ASCII characters will wo rk. Please read R for Mac OS X FAQ (see Help) section 9 and adjust your system prefe rences accordingly. [History restored from /Users/mac/.Rapp.history] > data1 <- read.csv("/users/mac/desktop/exemplo.csv" , header = T) > data1 nome idade sexo endereco 1 alexandre 36 1 leme,Rio 2 pedro 24 1 copacabana,Rio 3 roberto 56 1 Valparaiso,Petropolis 4 maria 45 2 Santana,Sao Paulo starting httpd help server ... done > > > > dimnames(data1) [[1]] [1] "1" "2" "3" "4" [[2]] [1] "nome" "idade" "sexo" "endereco"

> rownames(data1) [1] "1" "2" "3" "4" > rownames(data1)=data1$nome > data1 nome idade sexo endereco alexandre alexandre 36 1 leme,Rio pedro pedro 24 1 copacabana,Rio roberto roberto 56 1 Valparaiso,Petropolis maria maria 45 2 Santana,Sao Paulo

> data1$nome=NULL > data1 idade sexo endereco alexandre 36 1 leme,Rio pedro 24 1 copacabana,Rio roberto 56 1 Valparaiso,Petropolis maria 45 2 Santana,Sao Paulo > ls() [1] "data1" > > data2 <- read.table("clipboard") Error in file(file, "rt") : cannot open the connection In addition: Warning message: In file(file, "rt") : clipboard cannot be opened or contains no text > data2 <- read.table("clipboard") Error in file(file, "rt") : cannot open the connection In addition: Warning message: In file(file, "rt") : clipboard cannot be opened or contains no text > Rcmdr Error: object 'Rcmdr' not found > data1 idade sexo endereco alexandre 36 1 leme,Rio pedro 24 1 copacabana,Rio roberto 56 1 Valparaiso,Petropolis maria 45 2 Santana,Sao Paulo >

Vous aimerez peut-être aussi