Displaying 2 results from an estimated 2 matches for "colvalue".
2005 Feb 07
2
Programming/scripting with "expressions - variables"
...s
in translating SAS to R world. I hope I will get some hints 
or pointers so I can study from there on.
I would like to do something like this. In SAS I can write 
a macro as example bellow, which is afcourse a silly one but 
shows what I don't know how to do in R.
%macro test(data, colname, colvalue);
    data &data;
        ...
        &colname="&colvalue";
        other_&colname="other_&colvalue";
    run;
%mend;
And if I run it with this call:
%test(Gregor, Gorjanc, 25);
I get a table with name 'Gregor' and columns 'Gorjanc', 
and ...
2006 Jul 20
11
3 columns
Hi all,
Not really sure what to put in the title so hope people still open this!
What I want to do is produce something like this
Col1        Col2          Col3
data1       data2         data3
data4       data5         data6
data7       data8         data9
data..      data..        data..
data..      data..        data..
data-n      data-n+1      data-n+2
I can get the data back from my db