Coding query

From Icelandic Parsed Historical Corpus (IcePaHC)
Revision as of 16:31, 25 September 2013 by Einarfs (Talk | contribs)

Jump to: navigation, search

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

CS test1.c $ice [= ...icepahcv0.9/psd/*psd}

2. í annarri skrá, t.d. codes.q, er eingöngu skrifað "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"])