[Xts-commits] r626 - in pkg/xts: . R src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jun 6 21:16:44 CEST 2012


Author: jryan
Date: 2012-06-06 21:16:44 +0200 (Wed, 06 Jun 2012)
New Revision: 626

Added:
   pkg/xts/R/as.environment.xts.R
Modified:
   pkg/xts/NAMESPACE
   pkg/xts/src/add_class.c
   pkg/xts/src/attr.c
   pkg/xts/src/coredata.c
   pkg/xts/src/dimnames.c
   pkg/xts/src/tryXts.c
   pkg/xts/src/xts.h
Log:
o  fixed GPL3 headers that now read GPL2 (corrected as xts is GPL2)
o  added experimental as.environment.xts to coerce xts objects
   into NCOL 1-col xts objects within a new environment


Modified: pkg/xts/NAMESPACE
===================================================================
--- pkg/xts/NAMESPACE	2012-05-31 00:21:23 UTC (rev 625)
+++ pkg/xts/NAMESPACE	2012-06-06 19:16:44 UTC (rev 626)
@@ -52,6 +52,7 @@
 export(.index)
 export('.index<-')
 export(xtsible)
+export(as.environment.xts)
 export(use.xts, try.xts)
 export(Reclass, use.reclass)
 export(reclass)

Added: pkg/xts/R/as.environment.xts.R
===================================================================
--- pkg/xts/R/as.environment.xts.R	                        (rev 0)
+++ pkg/xts/R/as.environment.xts.R	2012-06-06 19:16:44 UTC (rev 626)
@@ -0,0 +1,6 @@
+as.environment.xts <- function(x) {
+  e <- new.env()
+  lapply(1:NCOL(x), function(.) assign(colnames(x)[.], x[,.],envir=e))
+  e
+}
+

Modified: pkg/xts/src/add_class.c
===================================================================
--- pkg/xts/src/add_class.c	2012-05-31 00:21:23 UTC (rev 625)
+++ pkg/xts/src/add_class.c	2012-06-06 19:16:44 UTC (rev 626)
@@ -7,7 +7,7 @@
 #
 #   This program is free software: you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by
-#   the Free Software Foundation, either version 3 of the License, or
+#   the Free Software Foundation, either version 2 of the License, or
 #   (at your option) any later version.
 #
 #   This program is distributed in the hope that it will be useful,

Modified: pkg/xts/src/attr.c
===================================================================
--- pkg/xts/src/attr.c	2012-05-31 00:21:23 UTC (rev 625)
+++ pkg/xts/src/attr.c	2012-06-06 19:16:44 UTC (rev 626)
@@ -7,7 +7,7 @@
 #
 #   This program is free software: you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by
-#   the Free Software Foundation, either version 3 of the License, or
+#   the Free Software Foundation, either version 2 of the License, or
 #   (at your option) any later version.
 #
 #   This program is distributed in the hope that it will be useful,

Modified: pkg/xts/src/coredata.c
===================================================================
--- pkg/xts/src/coredata.c	2012-05-31 00:21:23 UTC (rev 625)
+++ pkg/xts/src/coredata.c	2012-06-06 19:16:44 UTC (rev 626)
@@ -7,7 +7,7 @@
 #
 #   This program is free software: you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by
-#   the Free Software Foundation, either version 3 of the License, or
+#   the Free Software Foundation, either version 2 of the License, or
 #   (at your option) any later version.
 #
 #   This program is distributed in the hope that it will be useful,

Modified: pkg/xts/src/dimnames.c
===================================================================
--- pkg/xts/src/dimnames.c	2012-05-31 00:21:23 UTC (rev 625)
+++ pkg/xts/src/dimnames.c	2012-06-06 19:16:44 UTC (rev 626)
@@ -7,7 +7,7 @@
 #
 #   This program is free software: you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by
-#   the Free Software Foundation, either version 3 of the License, or
+#   the Free Software Foundation, either version 2 of the License, or
 #   (at your option) any later version.
 #
 #   This program is distributed in the hope that it will be useful,

Modified: pkg/xts/src/tryXts.c
===================================================================
--- pkg/xts/src/tryXts.c	2012-05-31 00:21:23 UTC (rev 625)
+++ pkg/xts/src/tryXts.c	2012-06-06 19:16:44 UTC (rev 626)
@@ -7,7 +7,7 @@
 #
 #   This program is free software: you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by
-#   the Free Software Foundation, either version 3 of the License, or
+#   the Free Software Foundation, either version 2 of the License, or
 #   (at your option) any later version.
 #
 #   This program is distributed in the hope that it will be useful,

Modified: pkg/xts/src/xts.h
===================================================================
--- pkg/xts/src/xts.h	2012-05-31 00:21:23 UTC (rev 625)
+++ pkg/xts/src/xts.h	2012-06-06 19:16:44 UTC (rev 626)
@@ -9,7 +9,7 @@
 Copyright Jeffrey A. Ryan 2008
 
 This source is distributed with the same license
-as the full xts software, GPL3.
+as the full xts software, GPL2
 */
 #include <R.h>
 #include <Rinternals.h>



More information about the Xts-commits mailing list