Hi all,

I need help in the following problem.

I have a data file containing 100 columns, with different number of rows.
I would like to read for example the columns from 45 to 56 and calculate something on these columns one by one, let's say calulate the mean value or make a histogram.

Could anybody help me how to do this?

I suppose I need a function in which the parameter list is somehow flexible, according to the range I want to read in...

Recommended Answers

All 2 Replies

number1#number2#number3...
#numberx#numbery...

You can use a specific character(# in example) and count them to know which coloumn and row it is...Good Luck!

Hi all,

I need help in the following problem.

I have a data file containing 100 columns, with different number of rows.

How can a file have a different number of rows?

I would like to read for example the columns from 45 to 56 and calculate something on these columns one by one, let's say calulate the mean value or make a histogram.

Could anybody help me how to do this?

What have you got?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.