[R] Manipulations with CO2 dataset on R

2017-10-08 Thread Ludovico Piccolo
Hi, I just started a new course this semester on R, I never used it in my life and i'm stuck on these questions from 3 days, it would be really nice if someone could explain me the answers with the relative commands. thanks a lot in advance The following 7 questions are based on the CO2 data

[R] (senza oggetto)

2013-06-19 Thread Ludovico Frate
Hi all! I am using this script to automatically generate txt file (raster map in ASCII format) from a big txt file x<-read.table("test.txt",header=T) # if headers are present in "test.txt" or x<-read.table("test.txt") # Actually, read.table() command skips the blank lines. n<-256 for (i in

[R] Text file: multiple matrix

2012-10-09 Thread ludovico
Hi there! I'm a newbie in R This is my problem: I have a txt file composed by 100 matrix (256x256) separated by a blank line! How can I save automatically the matrix in separated txt file (100)? e.g. 1° matrix from line 1 to line 256 257 blank line 2°matrix from line 258 to line 513 514 blank line