Displaying 2 results from an estimated 2 matches for "thisblock".
2009 Sep 18
1
problem regarding the data
Hi,
This is Meghana Kulkarni.
I have a problem regarding the data I am working with.
I have a data frame as follows:
> x
V1 V2 V3............V10
414 A
416 A
417 A
417 B
418 A
421 A
421 B
421 C
422 A
I want to conver this data frame in the following format.
> x
V1 V2 V3............V10
414 A
416
2011 Oct 10
1
Importing from Fortan
Hello all,
how do I import a Fortran file (f3.1) into one column in R? I've tried this
(I'm a total beginner as you can see):
> FortranData<-read.fwf("C:\\Users\\format3_1.txt",rep(3,20))
Warning message:
In readLines(file, n = thisblock) :
incomplete final line found on 'C:\Users\format3_1.txt'
> FortranData
V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 V17 V18
V19 V20
1 2.2 3.3 4.2 2.1 3.4 2.3 2.3 4.2 2.1 3.4 2.3 2.3 4.2 2.1 3.4 2.3 2.3 4.2
2.1 3.4
As you can see, each datum gets imported into a...