http://web.ift.uib.no/Teori/KURS/WRK/TeX/t1.gif |
A list of other special characters can be found in site http://www.noao.edu/noaoprop/help/symbols/
http://web.ift.uib.no/Teori/KURS/WRK/TeX/t1.gif |
$. mysqldump --add-drop-table -h localhost -u username -p dbname > dbname.sql $. ls dbname.sql
$. tar cvzf archive.tar.gz dbname.sql dbname.sql $. ls archive.tar.gz dbname.sql
$. tar xvzf archive.tar.gz dbname.sql
$. rm *.sql $. ls
vi /etc/crontab
//test.php file $db->query("INSERT INTO db_name.table_name(field_name) values('test')"); #cronjob file * * * * * username php test.php
*/15 * * * * username php test.php
#02:00am at night 00 02 * * * username php test.php #every 3 hours during the day 0 */3 * * * username php test.php #each hour 0 * * * * username php test.php #4 pm o'clock on the 15th day of each month 00 16 15 * * username php test.php #weeks every night at 2 am 00 02 * * 1-5 username php test.php #every hour every Sunday 0 * * * sun #every 3 hours 0 2,5,8,11,14,17,20,23 * * * username php test.php
If she loves you more each and every day, by linear regression she hated you before you met.
- Your theory is wrong!
- Out, liar!
Many R users prepare reports, documents or research papers using LATEXtype-setting system. Since typing tabular data structures in LATEXby hand consumes too much construction time, some packages were developed for automatic creation or conversion of R datasets. In this short entry, we show the usage and output of xtable function in xtable package. First install the package if it is not already installed:
After installation, the package is loaded once in the current session:
Now, suppose that we have a data frame and we want to export it as a LATEXtable. Let’s create a random dataset with three variables, x,y and z.
Calling the function xtable simply on the data that we have just created produces some output:
The generated output can easly be integrated with an LATEXfile. This table is shown as
x | y | z | |
1 | 26.00 | 86.00 | 44.00 |
2 | 81.00 | 13.00 | 22.00 |
3 | 39.00 | 27.00 | 57.00 |
4 | 32.00 | 57.00 | 56.00 |
5 | 50.00 | 15.00 | 31.00 |
6 | 34.00 | 100.00 | 98.00 |
7 | 54.00 | 46.00 | 24.00 |
8 | 42.00 | 55.00 | 42.00 |
9 | 62.00 | 91.00 | 77.00 |
10 | 5.00 | 73.00 | 25.00 |
This is an example of xtable function call with default parameters. In the next example, we put a caption.
x | y | z | |
1 | 26.00 | 86.00 | 44.00 |
2 | 81.00 | 13.00 | 22.00 |
3 | 39.00 | 27.00 | 57.00 |
4 | 32.00 | 57.00 | 56.00 |
5 | 50.00 | 15.00 | 31.00 |
6 | 34.00 | 100.00 | 98.00 |
7 | 54.00 | 46.00 | 24.00 |
8 | 42.00 | 55.00 | 42.00 |
9 | 62.00 | 91.00 | 77.00 |
10 | 5.00 | 73.00 | 25.00 |
Let’s put a label on it:
x | y | z | |
1 | 26.00 | 86.00 | 44.00 |
2 | 81.00 | 13.00 | 22.00 |
3 | 39.00 | 27.00 | 57.00 |
4 | 32.00 | 57.00 | 56.00 |
5 | 50.00 | 15.00 | 31.00 |
6 | 34.00 | 100.00 | 98.00 |
7 | 54.00 | 46.00 | 24.00 |
8 | 42.00 | 55.00 | 42.00 |
9 | 62.00 | 91.00 | 77.00 |
10 | 5.00 | 73.00 | 25.00 |
And this function call shows the numbers with three fractional digits.