search for: exampleinput

Displaying 1 result from an estimated 1 matches for "exampleinput".

2012 Aug 27
3
Changing entries of column of type "factor"/Adding a new level to a factor
What is a smart way to change an entry inside a column of a dataframe or matrix which is of type "factor"? Here is my script incl. input data: > #set working directory: > setwd("K:/R") > > #read in data: > input<-read.table("Exampleinput.txt", sep="\t", header=TRUE) > > #check data: > input Ind M1 M2 M3 1 1 96/98 120/120 0/0 2 2 102/108 120/124 305/305 3 3 96/108 120/120 0/0 4 4 0/0 116/120 300/305 5 5 96/108 120/130 300/305 6 6 98/98 116/120 300/305 7...