reading in data and transform it to matrix format
1
0
Entering edit mode
Angel ▴ 40
@angel-7981
Last seen 7.0 years ago
Berlin

hello,

i have a normalized text file named "text1" (consisting of 13 columns and 22300 rows) of which i pasted a little bit in the below

Probesets GSM1555931_wp-a2.CE GSM1555883_cp-a2.CEL GSM1555884_cp-b1.CEL

AF506028_F_at 2.841923 3.343265 4.007341

Cit.100.1.S1_x_at 3.487702 3.405457 3.873674

i want to perform heatmap with clustering by adapting my purpuse to the below code

  data <- read.csv("dataset.csv", comment.char="#")

in R i changed directory and i typed so:

> library(gplots)

Attaching package: ‘gplots’

The following object is masked from ‘package:stats’:

lowess

> library(RColorBrewer)
> data <- read.text("text1", comment.char="#")
Error: could not find function "read.text"
what i did wrong pleas?

matrix text • 1.7k views
ADD COMMENT
0
Entering edit mode

read.text is not a common function. I suggest you try read.table, and look at the documentation. Try running ?read.table 

ADD REPLY
0
Entering edit mode

thank you

i tried documentation but too confusing for me

data <- read.table("text1", comment.char="#")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") : cannot open file 'text1': No such file or directory
 

ADD REPLY
0
Entering edit mode

I suggest that you read this http://www.statmethods.net/input/importingdata.html

This forum is for specific queries of Bioconductor packages and you're having issues with fundamental R commands. You need to be more familiar with R before progressing, try some basic tutorials and get a feel for the environment/ common commands. Also, the documentation of a function or package should be your best friend in these situations. 

ADD REPLY
0
Entering edit mode
Angel ▴ 40
@angel-7981
Last seen 7.0 years ago
Berlin

yes you all right, thank you

ADD COMMENT

Login before adding your answer.

Traffic: 696 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6