two code samples for pftf dataset
[MojoFacets.git] / README
diff --git a/README b/README
index 98e7ad1..60f9b7a 100644 (file)
--- a/README
+++ b/README
@@ -50,7 +50,7 @@ array of values if you are creating new columns, even for single value.
 
 * generate new columns with number of elements in some other column
 
-  $row->{count} = [ $#{ $row->{original} } + 1 ];
+  $row->{author_count} = [ $#{ $row->{autor} } + 1 ];
 
 * generate century column from year
 
@@ -58,3 +58,14 @@ array of values if you are creating new columns, even for single value.
     push @{ $row->{century} }, int($year/100)+1;
   }
 
+* modify existing column
+
+  foreach ( @{ $rec->{'Cited Author'} } ) {
+    s/^\.+//;
+    $_ = uc $_; # assigment is needed to modify value!
+  }
+
+Code examples are stored in public/code
+
+They use Column name.description.pl notatition so only snippets which have applicable
+column will be shown.