Difference between revisions of "Coding query"

From Icelandic Parsed Historical Corpus (IcePaHC)
Jump to: navigation, search
Line 13: Line 13:
  
 
grep -v "b" temp.out > dataset.out
 
grep -v "b" temp.out > dataset.out
 +
 +
 +
 +
gogn<-read.table("dataset.out",sep=":",header=T)
 +
 +
table(gogn$position,gogn$year,gogn$def)
 +
 +
table(gogn$position[gogn$def=="d"],gogn$year[gogn$def=="d"])

Revision as of 07:43, 7 November 2011

1. byrjum á að skilgreina leitarfyrirspurnina/-skilyrðin í einhverri skrá, t.d. test1.c

CS test1.c $ice

2. í annarri skrá, t.d. codes.q, eru skilyrði eins og "print_only: CODING*" CS codes.q test1.cod

3. Nú ætti skráin test1.cod.ooo að vera til; hún inniheldur líklega aðallega b: (ef b er skilgreint sem "else")

grep -v "x" extraposed.cod.ooo > temp.out

4. Með -v er því eytt út sem leitað er að

grep -v "b" temp.out > dataset.out


gogn<-read.table("dataset.out",sep=":",header=T)

table(gogn$position,gogn$year,gogn$def)

table(gogn$position[gogn$def=="d"],gogn$year[gogn$def=="d"])