Skip to content

anchal1609/File-Reduce-in-R

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

To Run the Script in command line It's a R Script

Adarshs-MacBook-Air:File Reduse adarshpawar$ ls
Script.R	sample.csv
Adarshs-MacBook-Air:File Reduse adarshpawar$ RScript Script.R sample.csv 3
Adarshs-MacBook-Air:File Reduse adarshpawar$ ls
Output_0	Script.R	sample.csv
Adarshs-MacBook-Air:File Reduse adarshpawar$ cat Output_0 	
"type"	"symbol"		"price"	"quantity"		"expirydate"		"strikeprice"	"amendtime"			  "id"		"parentid"
"P"		  "ICICIBANK"	1100		100			      20121210			   120			    "20121209103030		1237		1234
"P"	  	"ICICIBANK"	1100		100			      20121210			   120			    "20121209103030		1241		1234
"T"	  	"ICICIBANK"	1000		100			      20121210		     120		    	"20121209103030		1234		0
Adarshs-MacBook-Air:File Reduse adarshpawar$ 

In Output0.txt file
Tab separated variables
"type" "symbol" "price" "quantity" "expirydate" "strikeprice" "amendtime" "id" "parentid"
"P" "ICICIBANK" 1100 100 20121210 120 "20121209103030 1237 1234
"P" "ICICIBANK" 1100 100 20121210 120 "20121209103030 1241 1234
"T" "ICICIBANK" 1000 100 20121210 120 "20121209103030 1234 0

About

Extract Information from one file and save into other by giving a query.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%