Search Results

Search: Posts Made By: nemo246
2,708
Posted By nemo246
Sorry, linux
Sorry, linux
2,708
Posted By nemo246
Thanks to both of you! I tried them both, vgersh,...
Thanks to both of you! I tried them both, vgersh, yours worked a bit faster. I'm using unix. I modified to:

awk -F, 'FNR>1{for(i=2;i<=NF;i++) $i=log($i)/log(2)}1' OFS=, CONVFMT='%.4f' myFile
...
2,708
Posted By nemo246
Log transformations with awk
Hi,

I have a very large csv file with almost 100,000 columns and 200 rows
Example.csv
ID,field1,field2,field3,field4
A,5,6,7,8
B,1,2,3,4
C,3,5,6,7

I'm trying to find a way, using awk,...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy